Skip to main content



      Home
Home » Archived » 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 11:57 Go to next message
Eclipse UserFriend
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 12:00] by Moderator

Re: TestStep fails and Event Handler succed, whole testCase fails? [message #1405115 is a reply to message #1405108] Wed, 06 August 2014 12:09 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 16:11:09 EDT 2025

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

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

Back to the top