Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameterization of test through Command prompt
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Question 
I have the .vbs file which launches my test and execute it successfully. But in that test name is hard coded ie I can run only specific test. Syntax for the same is as follows:-

qtApp.Open "c:\Test", True ' Open the test in read-only mode

Now I want pass Test through command line ie c:\LaunchQTPApp.vbs with Test as parameter. How can I achieve this feature.

Thanks in Advance.

Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
There are a number of ways.
Could set an Environment variable in DOS and read it in VBS,

Read in a file with the correct value for which test to run.

Pass a parameter into vbs using command line parameter.

Open a dialog in Vbs and type in the name of the command to run.

All well documented on the web.

Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
A neat solution would be

-list the tests in an excel sheet, put an execution flag and read the data from your vbs file
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to catch the script execution when QTP scripts are executed from command line Sreeni.lutukurthy 0 2,943 03-19-2015, 05:55 PM
Last Post: Sreeni.lutukurthy
Wink How to read text in command prompt using QTP Sourabh146 1 6,627 11-30-2013, 11:02 AM
Last Post: ravi.gajul
  Clicking command button in accesss form mark_cielos24@yahoo.com 1 3,356 05-07-2013, 10:52 PM
Last Post: agarwl.anurag
  how to run QTP scripts from command line prompt? pra6201 1 18,346 01-03-2012, 08:46 PM
Last Post: ravi.gajul
  Installation of Seat license through command line sowmya 0 2,295 12-14-2011, 12:34 PM
Last Post: sowmya

Forum Jump:


Users browsing this thread: 1 Guest(s)