There are a few situations where I need to launch and run a QTP test from the command prompt. For example, I’d like to use Windows Task Scheduler to run QTP tests at various times throughout the night, but there is (seemingly) no flag that I can use have QTP.exe open and run a test. How can I accomplish this?
Share
It’s true that with QuickTest Pro, you cannot directly run a test by calling
C:\Program Files (x86)\HP\QuickTest Professional\bin\QTPro.exe "C:\Some Test\"All hope is not lost, however. There is a way to create a small VBS file that can run any arbitrary QTP test when that VBS file is called. This is much better than creating a single batch file for each and every test.
To use the code above, execute a command like this:
cscript.exe "C:\RunThisTest.vbs" "L:\Test Path\The Test Itself\"