Lesson 2: Data-drive a test

In this lesson, you will use the data-driver to populate a dataset with data from the sample application.

  1. On the Recording toolbar, click Insert Data Driven Commands (Insert Data Driven Commands).

    The test script recording pauses and the Insert Data Driven Actions page opens.

  2. From the Insert Data Driven Actions page, use the mouse to drag the hand, the Object Finder (Object Finder), to the title bar, Place an Order, on the ClassicsCD application.

    HCL OneTest UI outlines the entire Place an Order dialog box with a red border.

  3. Release the mouse button.

    The Data Drive Actions page opens. In the Data Drive Actions page, under the DataDriven Commands table, information appears about the objects you selected.

    You can hover over a row in this table to view the line of code that HCL OneTest UI inserts into the test script to data-drive the test script.

Advance to Lesson 3: Add descriptive headings to the data.