Get Smart folder name

Ask general questions here.
Ajitpatil3011
Posts: 37
Joined: Thu Aug 22, 2019 4:14 pm

Get Smart folder name

Post by Ajitpatil3011 » Fri Dec 13, 2019 7:07 am

I wish to know the smart folder name into the Testsuite

Can someone please tell me how can I get that?
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Get Smart folder name

Post by odklizec » Fri Dec 13, 2019 8:10 am

Hi,

Could you please describe, in more details, what exactly you want to achieve and from which part of test you want to get the smart folder name? Generaly speaking, you can get the container name, using code like this (e.g. via code module, placed in Setup section of SmartFolder):

Code: Select all

string containerName = TestSuite.CurrentTestContainer.Name;
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Ajitpatil3011
Posts: 37
Joined: Thu Aug 22, 2019 4:14 pm

Re: Get Smart folder name

Post by Ajitpatil3011 » Fri Dec 13, 2019 10:06 am

Hello Pavel,

Thanks for the quick response, Your solution worked for me.

In my case I am willing to put this folder name in my reports as ConfigurationName so I was looking for this solution.

Thank you very much.