Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » TestStep fails and Event Handler succed, whole testCase fails?
TestStep fails and Event Handler succed, whole testCase fails? [message #1405108] Wed, 06 August 2014 15:57 Go to next message
Fernando Gomes is currently offline Fernando GomesFriend
Messages: 11
Registered: July 2014
Junior Member
Hi, I'm making a testcase where, if it finds determined component it does one thing(flow), if it does not find that component it does another thing(flow).

To make this "if" statement I'm using a event handler that fires if the check for the existence of determined component is true.

It works, however whenever the component does not exist, even if the event handler does it's job without error, the whole testcase fails, and the testSuit fails because of that, is there a way to make that, if the event handler succed, then the testCase is successful?


Edit: Forget about it just found the answer to that.
you just have to use the event handler as "retry" attempt.

[Updated on: Wed, 06 August 2014 16:00]

Report message to a moderator

Re: TestStep fails and Event Handler succed, whole testCase fails? [message #1405115 is a reply to message #1405108] Wed, 06 August 2014 16:09 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1590
Registered: July 2009
Senior Member
Hi there,

The only way a test can be successful after an Event Handler is if the Event Handler is of the type "retry" and the failed test step before the Event Handler is successful after the Event Handler. You can read more about the Event Handlers in the documentation [1] and there is an example in the portal [2].


Best regards,
Previous Topic:Drag & drop between AUT and another app / two AUTs
Next Topic:testexec can't connect to AUT
Goto Forum:

Current Time: Mon Apr 24 23:15:38 GMT 2017

Powered by FUDForum. Page generated in 0.06593 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software