Data-driven testing allows you to test multiple scenarios and data ranges with one script. Instead of using hard-coded values or creating a script for each set of data, data-driven scripts use a different set of test data each time the script runs. Data-driven testing also separates test data from the script, making it easier to modify both the script and the test data.
To use data-driven scripts, you associate a datasheet with a script and replace data in the script with datasheet values. When the script runs, the input values are read from the datasheet. The script repeats to use each row in the datasheet, allowing you to quickly test large amounts of data with one script.