how to run Test Batch Runner from command line - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: how to run Test Batch Runner from command line (/Thread-how-to-run-Test-Batch-Runner-from-command-line) |
how to run Test Batch Runner from command line - ash251182 - 03-22-2011 Hi What is the command to run "Test batch runner" from command line? I want to run .mtb files from command prompt, it is possible? Thank you, RE: how to run Test Batch Runner from command line - basanth27 - 03-23-2011 There is no specific command to run Test Batch Runner. The point is it is possible to run it from the command line. It is an exe named as AQTBatch.exe, so if you to navigate to that path and then you should be able to fire it. it would launch the Test Batch Runner. RE: how to run Test Batch Runner from command line - ash251182 - 03-23-2011 Thanks for your reply. I have tried running AQTBatch.exe from command prompt too, but it launches the Test Batch Runner and I need to add the tests and click "Run" Manually. Is there any way (in QTP 11.0) to run a set of tests directly from command prompt without manual intervention ? I tried running C:\Program Files\HP\QuickTest Professional\bin>AQTBatch.exe testing.vbs (where "testing.vbs" contains a list of test cases) I have also tried giving C:\Program Files\HP\QuickTest Professional\bin>AQTBatch.exe testing.mtb but it opens a new file in test batch runner, rather than picking up the .mtb file. RE: how to run Test Batch Runner from command line - basanth27 - 03-23-2011 Yes. Thats how it is supposed to work, unless somebody else has discovered anything new. What exactly are you trying to acheive? I mean i can see if there is a different way to acheive your goal. RE: how to run Test Batch Runner from command line - ash251182 - 03-23-2011 I want to know if it is possible to run test scripts in a batch file from command prompt directly, without manual intervension (in QTP 11.0) ? eg: run <AQTbatch.exe> <filename.mtb> RE: how to run Test Batch Runner from command line - Eptin - 01-06-2012 Here's the command I used to open then run QTP's Test Batch Runner from the command line: Code: "C:\Program Files (x86)\HP\QuickTest Professional\bin\AQTBatch.exe" "C:\Users\[You]\Documents\Batches\My Batch Test.mtb" -r That command will first open the Test Batch Runner program, then open your saved test batch in that same program, then run them. This command can also be run through Window's Task Scheduler. |