05-29-2013 12:14 AM
I have one testset "TestSet1" at path "Root\Application1\Project1\Module1". But I want to search testset in the folder "Root\Application1\Project1" by createing instance of TestSetFolder. And using TestSetFolder.FindTestSets("Root\Application1\Proj
tsFolder = tsTreeMgr.NodeByPath(nPath) --- I have already created instance tsTreeMgr of TestSetTreeManager
TestSetsList = tsFolder.FindTestSets("TestSet1") --- TestSsetList is instance of List Array
Could anyone tell me how to get full path of testset or any method which provide full path of TestSet ?
Thanks in advance
05-29-2013 10:25 AM
With TestSetsList you have a list of TestSet objects.
TestSet objects have a property called TestSetFolder, which is a pointer to the TestSetFolder object in which the test set exists.
TestSetFolder objects have properties named
If you get the TestSetFolder property for the TestSet, and then get the Path and Name properties from the TestSetFolder object, you will have the full path to the TestSet.
tsFolder = tsTreeMgr.NodeByPath(nPath) TestSetsList = tsFolder.FindTestSets("TestSet1") For each TestSet in TestSetsList set TestSetFolder = TestSet.TestSetFolder TestSetFolderName = TestSetFolder.Name TestSetFolderPath = TestSetFolder.Path FullPath = TestSetFolderPath & "\" & TestSetFolderName & "\" & TestSet.Name Next
(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)