- Data-driving tests overview
When you data-drive a test, the script uses variables for key application input fields and programs instead of literal values so that you can use external data as you data-drive the application you are testing.
- Data-driven functional tests
To data-drive a test script, you need to select the controls or objects in the application-under-test using either the Object Finder Tool method or the Test Object Browser method.
- Working with datasets
A dataset is a collection of related data records which supplies data values to the variables in a test script during test script playback.
- Creating a dataset
A dataset is a collection of related data records which supplies realistic data values to the variables in a test script during test script playback. You can create data from scratch or import existing data into a new dataset from another dataset or a .csv file.
- Importing to datasets
You can import test data into a dataset using a comma-separated value (CSV) file that enables you to import large volumes of test data to a dataset rather than manually entering them.
- Inserting data-driven commands into a script by using an application visual
You can add data-driven commands to the script by using an application visual.
- Associating a dataset with a group in a simplified script
You can associate a dataset with a group in a simplified script. With this capability, you can create multiple datasets for a script and associate the datasets with the groups in a script.
- Encrypting datasets
To secure test data, you must encrypt datasets. You can encrypt one or more columns of a dataset using a password. You are prompted to enter your password when you run a test that utilizes dataset with encrypted variables.
- Decrypting Datasets
You must decrypt the dataset if you want to export a dataset into a .csv file. If you decrypt a dataset, it revokes the protection offered to the test data in it.
- Editing datasets
After you data-drive a test to create a dataset or create an empty dataset, you can edit the records and variables in the dataset.
- Replacing literals with dataset references
If you have an existing test script, you can replace literal values in the script with dataset references to add realistic data to the script. You can find and replace all literals, or just the number, string, or boolean literals with a dataset reference.
- Dataset references and verification points
When you create a verification point with a dataset reference, you can supply variable data to make your tests more realistic.
- Changing the dataset record selection order
The test dataset record selection order determines how a test script accesses records in the test script's associated dataset when you play back the test script.
- Associating a dataset with a test script
You can associate a test script with a dataset to use external data to drive the application instead of using a literal value.
- Associating a test script with a dataset
You can associate a test script with a dataset to use external data to drive the application instead of using a literal value.
- Removing a dataset association
You can remove dataset association with a test script.
- Deleting a dataset
You can delete a dataset if you no longer require it.