Page 1 of 1

Choose based on Test Case ID

Posted: Fri Aug 17, 2012 4:55 pm
by regex
Find test case ID dynamically.

I want to add behavior where a specific set of test cases with 2.1.1 choose a link after logging into the portal.

What code would work?

public static void choosePortal()
{
if(TestCase.Equals("
}

Any tips?

Re: Choose based on Test Case ID

Posted: Fri Aug 17, 2012 7:44 pm
by Ciege
This post mentions how to get the current test name:
http://www.ranorex.com/forum/how-to-get ... t2894.html

From there you can check the string.contains result for the specific text you are looking for and do what you need to do using an If/Then or Case statement...