Quantcast
Viewing all articles
Browse latest Browse all 14708

Re: Finding next Test set and sub folder from a parent folder in QC Test Lab

Hey Jan, thanks for your repsonse.

When i tried using the following, i am able to extract next level test sets from a sub folder.

Set TsetMgr = QCConnection.TestSetTreeManager

 Path = "Root\Subnode1"

Set TsetNodepath1 = TsetMgr.NodeByPath(Path) 

          k = 1
           'Test sets
         Set Testsets = TsetNodepath1.TestSetFactory
         Set TestSet = Testsets.NewList("")
         For Each TEST In TestSet

 MsgBox(Test.Name) ' displays the name of test set.

 

 

--------------------I am successfull in displaying the next level test sets.

 

Now since i am able to show Test sets and folders in Test Lab Tree structure to the user, he can either select folder or test set.

 

So the path could be till subfolder or sometimes till test set.

 

I mean to say that if user wanted to extract test cases from a test set, given the path of test set, still he should be able to extract test cases, i am able to extract test cases if path is given till subfolders...

 

 Set tSetFolder = tsTreeMgr.NodeByPath("Root\OTA_Demo_TestSets")
' Because we are searching for the full name,
' the list will have only one entry.
Set TestSetsList = tSetFolder.FindTestSets("OTA_TS_2")
Set theTestSet = TestSetsList.Item(1)

 

 

I am looking for a code that will allow user to give path till test set and extract test cases from test sets.


Viewing all articles
Browse latest Browse all 14708

Trending Articles