Ranorex Spy, Recorder, and Studio.
-
carsonw
- Posts: 178
- Joined: Tue Nov 08, 2011 9:01 pm
Post
by carsonw » Tue Feb 07, 2012 6: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

You do not have the required permissions to view the files attached to this post.
-
Ciege
- Ranorex Guru
- Posts: 1335
- Joined: Thu Oct 16, 2008 5:46 pm
- Location: Arizona, USA
Post
by Ciege » Tue Feb 07, 2012 6: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 9:01 pm
Post
by carsonw » Tue Feb 07, 2012 6: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 5:14 pm
Post
by omayer » Tue Feb 07, 2012 8:11 pm
Ok, i do have the same question , how do I get the folder name under RxAutoTest...
Tipu
-
Support Team
- Site Admin

- Posts: 12167
- Joined: Fri Jul 07, 2006 3:30 pm
- Location: Graz, Austria
Post
by Support Team » Wed Feb 08, 2012 8: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
.

-
omayer
- Posts: 458
- Joined: Thu Oct 28, 2010 5:14 pm
Post
by omayer » Wed Feb 08, 2012 3:05 pm
Thank you Tobias, it worked
Tipu
-
carsonw
- Posts: 178
- Joined: Tue Nov 08, 2011 9:01 pm
Post
by carsonw » Wed Feb 08, 2012 5: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!