-1

I have a classic vbs file to run tests through QC/QTP. I would like to add a custom field in QC and set that field to yes or 1 when the test is run through the Vbs in contrast to a test run through QC or directly on QTP.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Ziwdigforbugs
  • 1,185
  • 8
  • 24
  • 41

1 Answers1

0

You can try and see if QTP's objects are defined

If TypeName(Window) = "Empty" Then
    MsgBox "VBScript"
Else
    MsgBox "QTP"
End If

How to distinguish between QTP and QC is answered here.

Community
  • 1
  • 1
Motti
  • 110,860
  • 49
  • 189
  • 262