Open topic with navigation
Associating datasheets with scripts
When a datasheet is associated with a script, the script runs once using the first datasheet row and then repeats for each additional row until it reaches the end of the datasheet.
Associate a datasheet with a script if:
- You want to run the entire script once for each datasheet row.
- The script only uses one datasheet.
- You do not want to add or delete rows in the datasheet when the script runs.
- Called scripts are not associated with a datasheet or are only associated with the same datasheet as the script that called them.
If you want to perform advanced data-driven testing, you may want to use datasheet statements instead of associating scripts with datasheets. Use datasheet statements if:
- You only want to run the script once and use one datasheet row per run.
- You want to run a small portion of the script once for each datasheet row.
- You want to append a row to the datasheet when the script runs.
- The script uses data from more than one datasheet.
See Navigating datasheets.
1. Open the script you want to associate the datasheet with.
2. Select the datasheet from the Data Source list in the Script pane.