Associating a datapool with the test

You associate a datapool with the data in the steps of a recorded test. For instance, you record a page to create a user and the data that you enter could be user name, gender, and age. When playing back the test, you can vary the data by associating the test with a datapool.

About this task

The datapool can be associated to a single test. To enable the datapool values to be picked up by multiple tests in the schedule or compound test, add a Datapool Mapper to the schedule or compound test. See Adding Datapool Mapper.

After the test recording stops, the tool automatically identifies potential datapool candidates and prompts a dialog box for you to view them. The datapool candidates are highlighted in light-green.

Procedure

To associate a datapool with a test:

  1. In the User Action Details section of the test editor, right-click a value that you want to associate with the datapool and click Substitute > Select Data Source.
  2. In the Select Data Source dialog box, click Datapool.
  3. Select a datapool and a column to associate with and click Finish.
  4. Select the datapool column checkbox again and click Select.
  5. You are prompted to do more substitutions. Click Cancel. Note that the color of value has now changed to dark green. This change indicates that the value is substituted.
  6. To save the changes, press Ctrl + S.

What to do next

You can now include the test or steps in a test to a loop so that the test iterates over the values in the datapool. For information about setting different iteration options for a loop, see Adding a loop.

Feedback