Choose based on Test Case ID

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
regex
Posts: 48
Joined: Tue Aug 14, 2012 5:47 pm

Choose based on Test Case ID

Post by regex » Fri Aug 17, 2012 4:55 pm

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?

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Choose based on Test Case ID

Post by Ciege » Fri Aug 17, 2012 7:44 pm

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...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...