Page 1 of 1

How to use Exists/NotExists as variable in iterations?

Posted: Thu Jun 25, 2015 11:09 am
by Krista
Hi!

I need to make a test with iterations that looks sort of like this:
Select Item X or Y
Make sure buttons A, B and C are either existing or notexisting.

Example:
select X -> A-exists, B-notexists
Select Y -> A-notexists, B-exists

I first tried to use "visible" attribute, but it fails because it can't find the element to check the visible status of.
"Validate" -> "Exist" is slower, so I might use "Wait For" -> "Exists", but I can't make it to be variable in either way.

How could this be solved?

Please help :)

Re: How to use Exists/NotExists as variable in iterations?

Posted: Fri Jun 26, 2015 8:34 am
by RobinHood42
Hello Krista,

Ranorex is not designed to do conditional testing, but it seems like your test scenario is based on conditions. You will either need to create this conditional logic within UserCode modules or you should reconsider your test itself. In order to provide help, we would need more information about your application under test.

Maybe you could upload a Ranorex snapshot file and provide further information about your requirements.

Cheers,
Robin