Is there a way to run QTP scripts from commandline without opening QTP

Questions by dsharma   answers by dsharma

Showing Answers 1 - 9 of 9 Answers

Priya kadlag

  • Jul 7th, 2006
 

U can run QTP script from the command line

wscript "<filepath.vbs>"

First create .vbs file , in that specify your test path name.

U can run only .vbs file from command Prompt

  Was this answer useful?  Yes

Hi All,
I need to run QTP script using Windows scheduler and notepad.
I used the below code in notepad and saved in .bat extension.
and double click it. This can start the QTP and loads the script but doesn't run.
I don't know where i went wrong???
It works fine for WinRunner... Any one cal help me please????



"C:Program FilesMercury InteractiveQuickTest ProfessionalbinQTPro.exe" -t (This part starts the QTP)

"C:ProgramFilesMercuryInteractiveQuickTestProfessionalTestingTestingForthe_Test_outputvalu" -Run (This is the script)


It is not executing??


Thanks & Regards

Deepak Sharma

  Was this answer useful?  Yes

Hi All,
I need to run QTP script using Windows scheduler and notepad.
I used the below code in notepad and saved in .bat extension.
and double click it. This can start the QTP and loads the script but doesn't run.
I don't know where i went wrong???
It works fine for WinRunner... Any one cal help me please????



"C:Program FilesMercury InteractiveQuickTest ProfessionalbinQTPro.exe" -t (This part starts the QTP)

"C:ProgramFilesMercuryInteractiveQuickTestProfessionalTestingTestingForthe_Test_outputvalu" -Run (This is the script)


It is not executing??

Thanks and Regards

Deepak Sharma

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions