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.
- On the Recording toolbar, click Insert Data Driven
Commands ().
The test script recording pauses and the Insert Data Driven Actions page opens.
- From the Insert Data Driven Actions page, use the mouse to drag the hand,
the Object Finder (), to the title bar, Place an Order,
on the ClassicsCD application.
Test UI outlines the entire Place an Order dialog with a red border.
- 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 Test UI inserts into the test script to data-drive the test script.
Advance to Lesson 3: Add descriptive headings to the data.