Best Practices for using Execution Variables?
In this sort of situation, how would I utilize the execution variables to allow us to reuse the same script multiple times?
In Quality Center, this can done by creating a "script library" (for lack of better term) where each potential variable step is given a parameter inside the script. Then when writing the scenario, we "call" the test script and are prompted to enter the data value for the parameter within the script. This is done for each unique call to the script allowing for modular and reusable scripting. Is there a similar functionality in RQM?
Example Test Suite:
1. Add New Person (first name: John, last name: Smith)
2. Run Credit Scoring
3. Add New Person (first name: Debbie, last name: Smith)
4. Run Credit Scoring
5. Create Form
One answer
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m4/index.jsp?re=1&topic=/com.ibm.rational.test.qm.doc/topics/t_using_exec_var.html&scope=null
would do the job for you. It allows the script to prompt the user to input the value during execution of a script.
Comments
Thanks Don but in having the prompt for the data come during execution, we're still required to maintain some sort of documentation outside of Rational which includes the data values that the tester should use.
We're trying to avoid this if at all possible b/c our client is not inclined to have to have rational open, an excel spreadsheet with data values, and the application open during testing.
Is there no way to add the data values to the test suite as part of the planning process so that when when we execute the script, it pre-populates the variables with the values?
your test scenario seems to me is more suitable in using test data(datapool concept) instead of execution variables. Please see the details in : http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m4/index.jsp?re=1&topic=/com.ibm.rational.test.qm.doc/topics/t_working_with_datapools.html&scope=null