How to get the test suite name of the current test suite?
This is not working: TestSuite.Current.Name.ToString();
Error Displayed: Object reference not set to an instance of an object.
Get Test Suite Name
Re: Get Test Suite Name
Take a look at the Ranorex API: https://www.ranorex.com/Documentation/Ranorex/
Shortcuts usually aren't...
Re: Get Test Suite Name
Have you determined which part is null? I'm going to guess you're running your code module directly from the Ranorex Studio editor individually, rather than from the TestSuite. Therefore there is no current TestSuite.
-
- Posts: 2
- Joined: Thu Sep 14, 2017 10:34 am
Re: Get Test Suite Name
Thank you. I was running the code module directly, rather than from Test Suite.