Dataset overview

Datasets provide tests with variable data during a run. When you record a test, you perform a sequence of steps that you expect a typical user to perform. After the recording, a test is generated that captures these interactions. When you run this test, it uses the same data that you used during recording. To vary the data in the test, you use a dataset, that contains variable data. At run time, this variable data is substituted for the data in the recorded test.

If you need to create a dataset with many records, you can initialize the dataset quickly by importing data from a comma-separated-value (CSV) file. Also, you can export test data from your dataset into a CSV file to enable you to maintain large volumes of test data as a spreadsheet for reuse. Earlier to 9.5, the dataset (formerly known as datapool) was in .datapool format and starting from the 9.5 release, the dataset is in the csv format.

You can copy the CSV file and paste into your project to import the data from a CSV file and create a dataset. Similarly, to export the dataset values as a CSV file, you must copy the dataset from your project and paste it into your local machine.
Note: Alternatively, you can use the Import option available in the CSV editor to import the data from a CSV file. For more information, see Editing datasets.

Perform the following steps should you plan to create a test that searches the HCL® website for three items: HCL OneTest Performance, HCL OneTest UI, and IBM® Rational® Manual Tester:

  1. Record a test that searches for one item.
  2. Create a dataset and associate it with the test. For more information, see Creating a dataset associated with a test.
  3. Associate a request in the test with a column in the dataset. For more information, see Associating a test value with a dataset column.
  4. Add a loop in the test to fetch the values from different rows of a dataset. A test without a loop fetches the value only from the first row of the dataset. For more information, see Adding a loop to a test.