Quality Center Support and News
Showing results for 
Search instead for 
Do you mean 

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

Highlighted
Occasional Contributor

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

 

1 REPLIES
Honored Contributor

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.)