Using any Action as Condition within an if-then-else [message #1758792] |
Mon, 03 April 2017 03:57  |
Eclipse User |
|
|
|
Hello,
I wanted to ask if it is possible to check if an action failed, usually i use the if else like in this example:
if
ComboBox -> CheckText equals "test"
then
Application -> close
else
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:
if
Button -> Click
then
Do nothing
else
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04579 seconds