I am attempting to use a vbs file and windows scheduler to run multiple qtp scripts located in Quality Center. I am attempting this method because I want the functionality of a vbs file where I can loop until a file exist before calling a test then loop until file 2 exists then call test 2.
Problem is, I am getting a "Cannot open test." error when I run my vbs file. I think I have the path to my test incorrect . Can you tell me what the correct path is to a test stored in Quality Center?
My code specific to this issue:
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Visible = True
qtApp.Open "[QualityCenter] Subject\Automation Production\Automation\Business Process Script\Test1", True, False
Set qtTest = qtApp.Test 'set run settings for the test
Set qtTest = Nothing ' Release the Test object
Set qtApp = Nothing ' Release the Application object
My error is on the qtApp.Open line, so I think the path I have is wrong.
I have been searching everywhere.
This is a test that I created in QTP and it is stored in Quality Center. I'm not sure but BPT is but I don't think it has anything to do with my original question. I CAN open this script in QTP just not when I attempt to open it using the vbs file.