Hi All,
I am trying to get test set name, folder name & other properties using QCUtil.CurrentTestset but UFT is not identifying it.
No methods are visible for this object. I am getting a vbscript runtime error "424 object required".
I have tried to clear all the cache, temp files, restarted machine several time.
UFT version : 14 , ALM version: 12.53
----------- Trying to get test set name ----------------------------
Set ObjCurrentTest = QCUtil.CurrentTestSet
Dim strTestName : strTestName = ObjCurrentTest.Name
------ Trying to get folder name -----------------------------------
Dim objCurrentTestSet: Set objCurrentTestSet = QCUtil.CurrentTestSet
Dim folder: Set folder = objCurrentTestSet.TestSetFolder
Dim folderName: folderName = folder.Name
---------------------------------------------------------------------
If I use below code to fetch test name, then it works but if I use the same "QCUtil.CurrentTest" to fetch folder name, then its behavior is same as "QCUtil.CurrentTestSet"
Set ObjCurrentTest = QCUtil.CurrentTest
Dim strTestName: strTestName = ObjCurrentTest.Name
-----------------------------------------------------------------------
I have googled a lot but I didn't find the exact solution.
Please help, it's really urgent.
Thanks,
I am trying to get test set name, folder name & other properties using QCUtil.CurrentTestset but UFT is not identifying it.
No methods are visible for this object. I am getting a vbscript runtime error "424 object required".
I have tried to clear all the cache, temp files, restarted machine several time.
UFT version : 14 , ALM version: 12.53
----------- Trying to get test set name ----------------------------
Set ObjCurrentTest = QCUtil.CurrentTestSet
Dim strTestName : strTestName = ObjCurrentTest.Name
------ Trying to get folder name -----------------------------------
Dim objCurrentTestSet: Set objCurrentTestSet = QCUtil.CurrentTestSet
Dim folder: Set folder = objCurrentTestSet.TestSetFolder
Dim folderName: folderName = folder.Name
---------------------------------------------------------------------
If I use below code to fetch test name, then it works but if I use the same "QCUtil.CurrentTest" to fetch folder name, then its behavior is same as "QCUtil.CurrentTestSet"
Set ObjCurrentTest = QCUtil.CurrentTest
Dim strTestName: strTestName = ObjCurrentTest.Name
-----------------------------------------------------------------------
I have googled a lot but I didn't find the exact solution.
Please help, it's really urgent.
Thanks,