Inserting data-driven commands into a script by using an application visual

You can add data-driven commands to the script by using an application visual.

Before you begin

Prerequisite: To use the application visuals for inserting data-drive commands into a script, the Insert Data Driven Commands feature must be enabled in the Preferences page before recording the script.


  1. Select the test line in the script editor that refers to the required application visual of the test application.
    The application visual that contains the control is displayed.
    Note: The thumbnail pane in the Application view displays images of all the application visuals that are captured for the project. You can select the required application visual image in the thumbnail pane and view the application visual in the Application view.
  2. In the Application view, move the mouse pointer over the control to use for the data-driven command.
    By default, the control is highlighted in red.
  3. Right-click and select Insert Data Driven Command.
    The data driven command for the control is inserted into the test script. You can drag the test line in the script editor to arrange the test lines in the required sequence for playback.
  4. In the Test dataset view, add the data for the control.
  5. Click File > Save to save the modified test script.
    During script playback, the data for the control is retrieved from the dataset.