How do I get the information in red? : Automation Tools

How do I get the information in red?

Ranorex Spy, Recorder, and Studio.

How do I get the information in red?

Postby carsonw » Tue Feb 07, 2012 8:14 pm

I have figured out how to get the information selected in the green outline, but I can't figure out how to get the information in the red outline, and I need that information.

Is there some method or accessor I'm missing for it? T Hanks :)
Attachments
red.jpg
Can't find the red!
red.jpg (72.11 KiB) Viewed 76 times
carsonw
 
Posts: 50
Joined: Tue Nov 08, 2011 11:01 pm

Re: How do I get the information in red?

Postby Ciege » Tue Feb 07, 2012 8:31 pm

Get what information and how? Not sure of your question...
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...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: How do I get the information in red?

Postby carsonw » Tue Feb 07, 2012 8:58 pm

Hmmm - maybe my screenshot is not visible?

I have the folder "SalesforceVolumeMarkup" circled in red. I need to be able to retrieve the name of that folder.
carsonw
 
Posts: 50
Joined: Tue Nov 08, 2011 11:01 pm

Re: How do I get the information in red?

Postby omayer » Tue Feb 07, 2012 10:11 pm

Ok, i do have the same question , how do I get the folder name under RxAutoTest...
Tipu
omayer
 
Posts: 239
Joined: Thu Oct 28, 2010 7:14 pm

Re: How do I get the information in red?

Postby Support Team » Wed Feb 08, 2012 10:55 am

Hi,

you can get the mentioned information by handling from current test case to it's parent node, which is in your scenario the TestSuiteFolder you are searching for.

var TC = (TestCase)TestCase.Current;
if (TC.Parent.GetType() == typeof (TestSuiteFolder) )
{
    Report.Info (TC.Parent.DisplayName);
}


Regards,
Tobias
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 4844
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: How do I get the information in red?

Postby omayer » Wed Feb 08, 2012 5:05 pm

Thank you Tobias, it worked
Tipu
omayer
 
Posts: 239
Joined: Thu Oct 28, 2010 7:14 pm

Re: How do I get the information in red?

Postby carsonw » Wed Feb 08, 2012 7:34 pm

Support Team wrote:Hi,

you can get the mentioned information by handling from current test case to it's parent node, which is in your scenario the TestSuiteFolder you are searching for.

var TC = (TestCase)TestCase.Current;
if (TC.Parent.GetType() == typeof (TestSuiteFolder) )
{
    Report.Info (TC.Parent.DisplayName);
}


Regards,
Tobias
Ranorex Support Team


Yes, that's great - thanks!
carsonw
 
Posts: 50
Joined: Tue Nov 08, 2011 11:01 pm


Return to Automation Tools

Who is online

Users browsing this forum: No registered users and 0 guests