API documentation
API documentation
I was looking through the 8.0.1 API documentation to see if I could create a utility to pull the descriptions on the Test Cases or/and Smart Folders. I began to get confused as sprinkled through the documentation are references to ITestContainer. The IModule page says to see ITestContainer. How I 'see ITestContainer'? Should I see a definition for ITestContainer in the document?
- RobinHood42
- Posts: 324
- Joined: Fri Jan 09, 2015 3:24 pm
Re: API documentation
Hi,
Just created a small code snippet, which allows you to retrieve the TestCase "Description":
Cheers,
Robin
Just created a small code snippet, which allows you to retrieve the TestCase "Description":
var currentContainer = TestSuite.CurrentTestContainer; if(currentContainer.IsTestCase) { var tc = currentContainer as TestCaseNode; Console.WriteLine(tc.Comment); }Hope this helps
Cheers,
Robin