How to use Exists/NotExists as variable in iterations?

Ranorex Studio, Spy, Recorder, and Driver.
Krista
Posts: 1
Joined: Thu Jun 25, 2015 10:48 am

How to use Exists/NotExists as variable in iterations?

Post by Krista » Thu Jun 25, 2015 11:09 am

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 :)

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

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

Post by RobinHood42 » Fri Jun 26, 2015 8:34 am

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