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?
相关问题
- TestCafe - The browser always starts in clean slat
- xcopy include folder
- Batch file if string starts by
- Jenkins - cmd is not recognized
- softlinks atime and mtime modification
相关文章
- Compile and build with single command line Java (L
- Extracting columns from text file using Perl one-l
- How to update command line output?
- How to execute another python script from your scr
- How can one batch file get the exit code of anothe
- Open file from windows file dialog with python aut
- How to make jenkins fail at a failing windows batc
- Problems using start-process to call other powersh
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\"
The Multithreaded Driver tool can execute the script for you.