Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Using any Action as Condition within an if-then-else
Using any Action as Condition within an if-then-else [message #1758792] Mon, 03 April 2017 07:57 Go to next message
Marcel Schramm is currently offline Marcel SchrammFriend
Messages: 4
Registered: November 2016
Junior Member

I wanted to ask if it is possible to check if an action failed, usually i use the if else like in this example:
    ComboBox -> CheckText equals "test"
    Application -> close
    Do nothing

In that case, i'd have a perfectly working condition, since checkText returns either true or false (in case the component exists and so on).

But now i am facing the problem that i'd like to use an Action such as "Click" in my condition, like this:
    Button -> Click
    Do nothing
    Reload aplication

If i use it like that and Jubula isn't be able to click the button, it just marks the test as failed instead of executing the given else block.

Ofcourse, in this case i could just check for the buttons existence, but that was just an example.

greetings Marcel
Re: Using any Action as Condition within an if-then-else [message #1758881 is a reply to message #1758792] Tue, 04 April 2017 06:58 Go to previous message
Kevin Barbe is currently offline Kevin BarbeFriend
Messages: 64
Registered: July 2016
Hi Marcel,

in that case it makes sense to use the Event Handlers of Jubula. You could then simply create a Test Case containing ub_app_restart and define it as an 'Action Error' handler for your Test Case. For more info see [1].

Best regards,

Previous Topic:REST testing from Jubula
Next Topic:For each test case i need to restart the AUT
Goto Forum:

Current Time: Sat Jan 16 00:49:30 GMT 2021

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

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

Back to the top