Associating a dataset with a group in a simplified script

You can associate a dataset with a group in a simplified script. With this capability, you can create multiple datasets for a script and associate the datasets with the groups in a script.


  1. Select a group in the simplified script editor that contains the test lines to be data-driven. The General page in the Properties view displays the dataset section.
  2. On the General page of the Properties view, you must specify the dataset details:
    1. To create a dataset and associate it with the group, type a new dataset name. If a dataset already exists, select the dataset from the list.
    2. Type the dataset iteration count to specify the number of times the test lines in the group must be run by accessing the records in the dataset.
  3. Click Script > Find Literals and Replace with Dataset Reference to replace the existing literals in the group with the dataset reference. Ensure that you add the literals to the dataset while replacing the literals with the dataset reference so that the values are added to the dataset. For more information, see the topic about replacing literals with dataset reference.
  4. Click File > Save to save the test script. The Test dataset view displays the newly associated dataset with the literal values as records. You can add more data to the dataset in the Test dataset view.
    Note: If you insert data-driven commands for other controls in the group by using an application visual, the data for the control is automatically added to the dataset that is associated with the group.
    During script playback, the data for the controls is retrieved from the associated dataset.