Re: how can i get the selected test set using the script editor (112 Views)
Reply
Occasional Contributor
AutomationTest
Posts: 2
Registered: ‎05-29-2013
Message 1 of 2 (126 Views)

how can i get the selected test set using the script editor

I created a button and i want to get the selected test set when the user click on it, i sow some examples thet didnt work for me like:

Set CurrentTestSet = QCUtil.CurrentTestSet
Set folder = CurrentTestSet.TestSetFolder
folderName = folder.Name
strPath = folderName
While folderName <> "Root"
Set folder = folder.Father
folderName = folder.Name
strPath = folderName & "\" & strPath
Wend
msgbox strPath

 

thanks

 

Honored Contributor
Trudy Claspill
Posts: 3,628
Registered: ‎09-09-2010
Message 2 of 2 (112 Views)

Re: how can i get the selected test set using the script editor

You don't need a While loop. Take a look at this post.
http://h30499.www3.hp.com/t5/Quality-Center-Support-and-News/How-to-get-fullpath-for-Testset/m-p/608...
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

(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.)
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.