Running the test
Execute a test with multiple records (rows) of data supplied by an external data file.
Once you have created a data set and a test that makes use of the data set, you may execute the test.
Execute Test Case 02 of your test.
With your test displayed in the editor, do the following:
Click Execute on the toolbar.
The Execute Test dialog box appears.
In the Test Modules panel, expand the tree.
Ensure that only the check box for test caseTC 02is selected.
Click Execute.
The status bar (at the bottom left of the TestArchitect window) indicates the stages of the test as it progresses.
Examine the results to ensure that the test was driven by the external data file.
The results display a report line (
Quantity n of model...
) for each execution of the use data set/repeat data set loop, corresponding to each data row inRentedCars.tsv
:
The results appear identical, or nearly identical, to those of Test Case TC 01
. Note that if you altered any of the data after copying from the first data set to the text file (for instance, Prius
-> Thunderbird
), the change is reflected in the results, confirming that the source of the data is the external file.