It's all about the answers!

Ask a question

RQM Scripts with Variable Data

David Beange (11135699) | asked Apr 04 '13, 9:22 a.m.
retagged Apr 04 '13, 9:29 a.m. by Laura Kuczarski (21137)

 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.

The links we have found are only for V2 so that could explain and things have changed for V3 however.

I have been using this tutorial ( 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( 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 but still have issues. Can anyone assist please.

One answer

permanent link
Laura Kuczarski (21137) | answered Apr 04 '13, 9:29 a.m.
Just FYI - the RQM v3 documentation is available here:

Laura Kuczarski commented Apr 04 '13, 9:31 a.m.

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"

Jaguar XF
Jaguar XF-R
Jaguar XF-RS
Jaguar XF Sportbrake
Range Rover Evoque 3-door
Range Rover Evoque 5-door
Land Rover Freelander
Land Rover Discovery
Jaguar XJ
Jaguar XJ L

Laura Kuczarski commented Apr 04 '13, 10:44 a.m. | edited Apr 04 '13, 10:46 a.m.

Thank you!  I was able to import that test data and run a script successfully:

After I passed the first step, the data was replaced by the next car name, until the end of the data.
Sorry to ask you for more info, but can you attach another image of what you're seeing when you run the script? The first one was hard to read.  Thanks!

Your answer

Register or to post your answer.