How do I get the information in red?

Ranorex Spy, Recorder, and Studio.
carsonw
Posts: 178
Joined: Tue Nov 08, 2011 10:01 pm

How do I get the information in red?

Post by carsonw » Tue Feb 07, 2012 7: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 984 times

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

Re: How do I get the information in red?

Post by Ciege » Tue Feb 07, 2012 7: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...

carsonw
Posts: 178
Joined: Tue Nov 08, 2011 10:01 pm

Re: How do I get the information in red?

Post by carsonw » Tue Feb 07, 2012 7: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.

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: How do I get the information in red?

Post by omayer » Tue Feb 07, 2012 9:11 pm

Ok, i do have the same question , how do I get the folder name under RxAutoTest...
Tipu

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How do I get the information in red?

Post by Support Team » Wed Feb 08, 2012 9: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
.
Image

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: How do I get the information in red?

Post by omayer » Wed Feb 08, 2012 4:05 pm

Thank you Tobias, it worked
Tipu

carsonw
Posts: 178
Joined: Tue Nov 08, 2011 10:01 pm

Re: How do I get the information in red?

Post by carsonw » Wed Feb 08, 2012 6: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!