Lesson 7: Associating the dataset with the test
By default, at run time, the data pool values are accessed sequentially. You can specify whether the test uses the data pool values randomly or in a shuffled manner. If you have a long list of data pool values that are used by multiple tests from the same workspace, you can share a data pool.
About this task
Context for the current task
Procedure
To associate the dataset with the test:
- In the ibm-web-purchase test script, select the test step where you enter ‘rational test workbench’ in the Search field.
-
In the User Action Details section, right-click ‘rational test workbench’ and click
.
- In the Select Data Source dialog box, click Add Dataset.
-
Select the dataset that you created and click the ProductName column. Click
Finish.
-
Select the ProductName checkbox and click
Select.
- You are prompted to do more substitutions. Click Cancel. Note that the color of ‘rational test workbench’ value has now changed to green. This change indicates that the value is substituted.
- Repeat these steps for the other occurrence of ‘Rational Test Workbench’ in the test script.
- To save the changes, press Ctrl + S.
Results
You have learned how to associate the test values with the dataset values. Your test will now run with substituted values during the search for a product.
In the next lesson, you will create a compound test and run the two test scripts in sequence.