Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find complete path of a test in TestLab from a business process test ?
#1
Not Solved
Hello,
How to find complete path of a test in TestLab from a business process test ?
I'm on QTP10 and QC10
I have found some codes who work in QuickTest-Test but not in BPT (Business Process Test)
I try :

Code:
Dim qtApp
Set qtApp = CreateObject("QuickTest.Application")
strTestPath = qtApp.Test.Location
msgbox strTestPath


Set CurrentTest = QCUtil.CurrentTest
Set TestPath = CurrentTest.FullPath
msgbox TestPath


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


Someone have an idea ?

Thank in advance
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 919 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Multiple rows of test data Bhuvana 0 1,135 01-03-2020, 09:30 PM
Last Post: Bhuvana
  Can we test Salesforce Standard form using QTP? yona34 0 934 05-22-2018, 10:57 AM
Last Post: yona34
  issue with IE when running test eiko 2 1,429 02-01-2018, 04:46 PM
Last Post: eiko
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,772 11-30-2017, 02:21 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)