Associating a dataset with a test script

You can associate a test script with a dataset to use external data to drive the application instead of using a literal value.

About this task

A dataset is a test dataset, a collection of related data records. It supplies data values to the variables in a test script during test script playback.

Procedure

  1. In the Projects view, select a dataset.
  2. Right-click the selected dataset and click Associate with Script. The Associate the dataset with scripts dialog is displayed.
  3. Expand the project to open the list of scripts.
  4. Click one or more test scripts to associate with the dataset that you selected.
  5. Click Finish.
    CAUTION: If you change the dataset associated with a script, the script may run incorrectly.
  6. If you receive a message that a script is already associated with a dataset, you must complete one of the following steps:
    • Click Yes to change the dataset associated with the script to another dataset.
    • Click No to keep the dataset associated with the script.