Page 1 of 1

Conditional running of blocks of tests in a suite

Posted: Tue Sep 24, 2013 8:01 pm
by TD_SF49ers
Hi Group,

Basically what I want to do is:


if (queryDBResults == "version 1.2")
run this group of nested tests; //version 1.2
dont run these tests; //version 2.x
else
run this group of nested tests; //version 2.x
dont run these tests //version 1.2

Any suggestions on how this can be accomplished?

Re: Conditional running of blocks of tests in a suite

Posted: Wed Sep 25, 2013 1:29 pm
by Support Team
Hello,

In general, it's not recommended to modify the workflow of a Test Suite.
Although, you could enable or disable a Test Case via User Code.
Please take a look at the following posts:
http://www.ranorex.com/forum/starting-t ... t3899.html
http://www.ranorex.com/forum/repeating- ... t3856.html

Another possible way would be to use a 'Test Run Configuration' for each version.
Please take a look at our User Guide for more information.

Regards,
Markus (T)