Hi, does anybody know:
I am running my scripts from batch files. Typically, when I run a script in QAWP user interface, it allows me to select the input variables. But a batch file does not. Can I supply a command line argument? How else can we input initial values to scripts run as batch files?
I was hoping someone would be able to answer this by now. I would use Repository variables to pass to the scripts. I think they work the same as in normal scripts. Those variables, once declared in the repository, can be set in the command line argument using </Var="Value"> as long as the "Auto-Record Substitution" box is clicked when the original Variable Names are set up.
Success is the ability to go from one failure to another with no loss of enthusiasm.
~ Winston Churchill ~
[ QUOTE ]
Can I supply a command line argument? How can we input initial values to scripts run as batch files?
[/ QUOTE ]
If you have repository variables created for your application you can set the initial values of the repository variables from the command line using /DvariableName="variableValue"
NOTE: The 'Prompt' checkbox for the repository variables must be set for the command line values to be used.
If 'Prompt' is not checked, default values for the repository variables will be used if available.
DVariableUsageTestScript.qawbatch contains one script DVariableUsageTestScript.qawscript</font>
Window("WysiCorp Report a Bug").Editbox("editboxUsername").SetText(username1 )
Window("WysiCorp Report a Bug").Editbox("editboxPassword").SetText(password1 )
Window("WysiCorp Report a Bug").Button("buttonLogin").Click()