Lesson 9: Adding a loop
You can learn about adding a loop to a test so that the test runs repeatedly for a specified number of time, while fetching values from an associated dataset. You can either select a count-based, a time-based, or an infinite loop for the test. You can set the loop to infinite if you want the test to fetch the data from all the rows in a dataset.
You must have completed the following tasks:
- Read and been familiar with running tests. See Lesson 3: Running a test.
- Read and been familiar with adding a loop to a test. See Adding a loop.
- Associated a dataset with the test. See Lesson 7: Associating a dataset with a test.
- Ensured that the WikiCompoundTest test is displayed in the Compound Test Contents panel of the test editor window. See Lesson 8: Creating a compound test.
For the test scenario in this tutorial, you can use AnimalsDataset as the associated dataset that has three entries. You can add a loop with three iterations to the test.
You have learned to add a loop to a test so that the test runs repeatedly for a specified number of time.
- The associated dataset is successfully applied for the search action during the playback.
- The animal name in the test is substituted with the animal names that are listed in the dataset.
- The test is successfully repeated for the specified number of iterations.