Page 1 of 1

How do I get the information in red?

Posted: Tue Feb 07, 2012 7:14 pm
by carsonw
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 :)

Re: How do I get the information in red?

Posted: Tue Feb 07, 2012 7:31 pm
by Ciege
Get what information and how? Not sure of your question...

Re: How do I get the information in red?

Posted: Tue Feb 07, 2012 7:58 pm
by carsonw
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.

Re: How do I get the information in red?

Posted: Tue Feb 07, 2012 9:11 pm
by omayer
Ok, i do have the same question , how do I get the folder name under RxAutoTest...

Re: How do I get the information in red?

Posted: Wed Feb 08, 2012 9:55 am
by Support Team
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

Re: How do I get the information in red?

Posted: Wed Feb 08, 2012 4:05 pm
by omayer
Thank you Tobias, it worked

Re: How do I get the information in red?

Posted: Wed Feb 08, 2012 6:34 pm
by carsonw
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!