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?

Thanks.


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: 1345
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].

[1] http://help.eclipse.org/luna/topic/org.eclipse.jubula.client.ua.help/html/manual/node293.html
[2] http://testing.bredex.de/deal-with-occasional-dialog.html

Best regards,
Alex
Previous Topic:ignoring text input component
Next Topic:Parametrise Eventhandler: Retry
Goto Forum:
  


Current Time: Sat Jul 04 07:05:58 GMT 2015

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

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