The data-driver populates a datapool with data from the application. A datapool is a collection of related data records. A datapool supplies data values to the variables in a test script during test script playback.
You can use two methods to select an object:
To data drive a test script:
The Functional Tester window minimizes and the Recording Monitor opens.
on the Recording toolbar. See Starting Your Test Applications for more information. (If your application is already running, you do not need to do this step.)
). The test script recording pauses and the Insert Data Driven Actions page opens.
By populating these fields while the recorder pauses, you do not record unnecessary actions in the test script. Any change to the control flow of the program while the test script recording pauses is not recorded in the test script.
Press and drag hand to select
test objects -- Use this method to select an object and all the
descendents of the selected object. This is the most common and direct method
of selecting an object.
Use
selection wizard to select test objects -- Click to use the Drag
Hand Selection method with its options, or the Test
Object Browser method. The Select Object to Data Drive page opens.
Press and drag hand to select
test objects, take the following steps:
), to the object in the application that you
want to select. Functional Tester outlines the object with a red border.
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 place your mouse pointer over a row in this table to view the line of code that Functional Tester inserts into the test script to data-drive the application-under-test.
Use
selection wizard to select test objects, click the Selection
method arrow to select one of the following methods:
), to the object in the application that you
want to select. Functional Tester outlines the object with a red border.
The Insert Data Driven Actions page opens with information filled in under Data Driven Commands and Selected Command Description.
For example, you can change the initial value of a test object to test the non-default states of an application.
Click
to move the selected row earlier in the order of execution in the Data Driven
Commands table.
Click to
move the selected row later in the order of execution in the Data Driven Commands
table.
Click to delete a selected
row from the Data Driven Commands table.
Click to highlight a test object in the application-under-test. Select
a test object in the Data Driven Commands table, and then click this icon.
Click
to display or hide recognition and administrative properties for a selected
test objectYou can use a datapool reference instead of a literal value for the value you are testing in the verification point.
Click the Help button in the Script Support Functions dialog box for information on these functions.
) to write all recorded
information to the test script and update the datapool with new variables
and associated initial values. The Functional Tester window opens and the script displays in the editor window.