I am running tests from a batch file which opens winrunner and runs a test. My test requires test perameters.
Can some one please let me know which command line option should i use to pass parameters to a test.
Thanks all for your time and help.
You can't pass test parameters from the command line, but you also don't need to. Just run your main batch test from the command line, and let it call sub tests with parameters.
if u go for WR-Batch Test
use call function
step 1: select file-->Test properties-->paramaters
step 2: click on Add button to add arg1,arg2,arg3,....argn
step 3: Run scripts eighter verify/debug mode
I got the same problem while starting test with silktest. The solution was to give the parameter in the clip board. You can use than the cso_lib:
that contain set_clipbrd_text - This function will put the specified string on the system clipboard and
get_clipbrd_text - This function will get the current text from the system clipboard.
Another solution can be environment varibles from OS you set them before executing the batch file and use setvar and extern to define variables in a function where you need them.
Catch the train on rail of fasten, proven and easy solutions.
I have succesfully arranged a workflow Independent Framework for QTP like the EMOS Framework for WR