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.
You can use datasets to supply realist data and to stress an application with a realistic amount of data.
Using HCL DevOps Test UI (Test UI), you can create a data-driven test by selecting the controls or objects in an application-under-test to data-drive. Test UI creates a dataset in which you can edit and add data. You can use a single test script repeatedly with varying input and response data.
You can use the dataset feature in the following ways:
- To add realistic data to a test script.
- To import data from a dataset or a .csv file created using a spreadsheet application.
- To edit dataset values.
- To change the dataset record selection order to determine how the test script accesses an associated dataset during playback.
While working with simplified test scripts, you can either create a data-driven test script during recording or you can insert data-driven commands into the simplified test script by using the application visuals. You can also create multiple datasets for a script and associate a dataset to a group in a simplified script.
Private and shared datasets
Every test script that you create has a private test dataset associated with it. The initial private test dataset is a placeholder and is empty until you data-drive a test script, or add new data to it.
You can create a shared dataset by creating a new dataset, or you can associate a dataset with several test scripts to share a dataset.