| || |
get test case folder using OTA
I am trying to export test case name and status to excel after I run a test set. I can export the info if i tell it which folder the test case is in by the following:
Set testsettree = TreeMgr.NodeByPath("" & strNodeByPath & "")
But if I create a BPT out of my code and then add it to the Test Lab along with my other test cases, is there any way to get the folder path automatically?
Thanks for your help!
Re: get test case folder using OTA
I was able to figure out how to do this using QTP. Below is the code incase anyone else needs it:
set CurrentTSTest = QCUtil.CurrentTestSet
testname = CurrentTSTest.Name
testfolder = CurrentTSTest.TestSetFolder
testpath = CurrentTSTest.TestSetFolder.path