RQM Scripts with Variable Data
David Beange (111●3●64●101)
| asked Apr 04 '13, 9:22 a.m.
retagged Apr 04 '13, 9:29 a.m. by Laura Kuczarski (211●3●7)
RQM V3.
We want to be able to test something using the same test script on our application a number of times using different variables.
For example we have one script which tests that a car displays correctly on a screen however, we have 9 different cars to test this on and want to make sure that it happens correctly in each of our 17 languages. As you can see that multiplies up to a good number. We only want to have to write the script once and also don't see much value in copying the script (linked to the test case) each time with different values. However, we want to be able to see which cars have been tested with which languages etc,
We have created a test script with test data in it. However, when I run the script the column name still shows and the test data is not inserted in its place.
I have been using this tutorial (http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/index.jsp?topic=/com.ibm.rational.test.qm.tutorial.doc/topics/a_gs_qm_lesson42.html) and every step works except step 4.d. (no confirmation window displays after I choose the test data to be included) and obviously the sentence at the bottom of the tutorial 'During test execution, the literals are replaced with the test data.'
On(http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/index.jsp?topic=/com.ibm.rational.test.qm.doc/topics/c_datapool_overview.html) the tutorial states that "By replacing literal values with variable data, you can use a single script to test multiple data records" and that is exactly what we want to do.
I have followed the correct procedure to load test data and include it in the test script, see below - this all work fine.
However, when I run the script the word 'Cars' (which I used the variable data to input) stays as 'Cars' and is not variable and does not change as it is supposed to. See below:
We have also tried https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.rational.test.qm.doc/topics/t_using_datapool.html&scope=null but still have issues. Can anyone assist please.
|
One answer
Just FYI - the RQM v3 documentation is available here: http://pic.dhe.ibm.com/infocenter/clmhelp/v3r0m1/index.jsp
Comments Also, can you provide an example of the test data that you're trying to use?
David Beange
commented Apr 04 '13, 9:56 a.m.
A simple csv file as per below is used. The Column header being "Cars:STRING"
Thank you! I was able to import that test data and run a script successfully:
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.