Lesson 6: Play back the test
In this lesson, you will play back the test you just recorded and use a variety of data from a dataset to test the application.
Each time you play back a script with an associated dataset, the script accesses one record in the dataset. When you create a dataset reference for a verification point, the verification point uses the dataset reference to access a variable in that record. During playback, HCL DevOps Test UI (Test UI) substitutes the variable in the dataset for the dataset reference and compares the variable in the dataset to the actual results.
During playback you can view the script name, the script line number that is executing, status icons, and a description of the action in progress in the Playback Monitor.
- To play back the test script, click
The Select Log dialog opens.
. - Click Next.
- Click the dataset iterator Count arrow and scroll up to select Iterate Until Done to access all three records in the dataset.
- Click Finish to use the default log name.
The Test UI window minimizes, and the Playback Monitor appears in the top right area of your screen. Messages appear in the Playback Monitor as Test UI plays back all of the recorded actions in the test script and enters data from the dataset.
When the test script finishes playing back, Test UI displays a log with the test results. A log is a file that contains the record of events that occur while playing back a script. A log includes the results of all verification points executed that can be used to test the application.
- Click X to close the log.
This completes the tutorial. You have data-driven a test script, created descriptive headings for the data collected, added data to the dataset, created a data verification point with a dataset reference, played back a test script, and viewed the log.
To learn more about data-driving test scripts and the dataset editor, see the Data-Driving Tests section of the Test UI Help.