Lesson 6: Creating a dataset

You can learn about creating a dataset for a test so that you can fetch the variable dataset values at the run time. A dataset is a collection of related data records that you can use to substitute the data in the test.

Before you begin

You must have completed the following tasks:

About this task

For the test scenario in this tutorial, you can create a dataset that consists of three animal names, other than the one that you already entered in the application under test (AUT) while you record the test.

Procedure

  1. Right-click myProj in the Test Navigator panel, and then click New > Dataset.
  2. Perform the following steps in the New Dataset dialog:
    1. Select myProj as the parent folder.
    2. Enter AnimalsDataset in the File name field, and then click Next.
    3. Optional: Enter Dataset for animal names in the Description field.
    4. Select 1 as Columns and 3 as Rows for the dimensions of the dataset, and then click Finish.
    5. Click Yes in the Open dataset dialog.
      The AnimalsDataset dataset is displayed in the CSV Editor in a browser.
  3. Perform the following actions below Column1 in the dataset:
    1. Enter Tiger in the first row, and then press the Down Arrow key.
    2. Enter Panda, and then press the Down Arrow key.
    3. Enter Lion.

  4. Click the Save icon to save the dataset.

Results

You have learned to create a dataset for a test script.

What to do next

You can learn about associating a dataset with your test.

You can use the dataset to substitute the data in the test with the variable data from the dataset at the run time. See Lesson 7: Associating a dataset with a test.