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.
Asked
Active
Viewed 81 times
-1
-
1So what's your problem? – TheBlastOne Mar 31 '15 at 10:18
-
Thanks for your answer, I am out of idea how to add this Flag to my batch. – Ziwdigforbugs Apr 02 '15 at 09:08
1 Answers
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.