possible to define / use conditions? [message #1464420] |
Fri, 07 November 2014 09:35  |
Eclipse User |
|
|
|
Is it possible to define conditions inside a testcase?
For example:
i want to test the login feature inside a webpage, but only if the user is not logged in already.
The logic in rough could be desribed as:
If there is element "login here" existing, perform the steps to login; otherwise let it.
Currently i did not find a way to solve that.
|
|
|
|
|
Re: possible to define / use conditions? [message #1481216 is a reply to message #1464710] |
Thu, 20 November 2014 16:26  |
Eclipse User |
|
|
|
Plinio Froener wrote on Fri, 07 November 2014 15:27but if the Retry check will fail again, and again.... because the Login will not be there... i think that Michael need just one "IF".
The trick is, the check needs to be that it passes if the login is NOT there. If the login IS there, then the check fails, and the event handler executes. The event handler deals with the login so that it is no longer there when the check is retried, and so the check passes on the retry.
|
|
|
Powered by
FUDForum. Page generated in 0.03725 seconds