Creating a datapool

Datapools provide variable test data to tests during execution. Test data (for example, input and output data) is stored in a datapool and substituted in the test during execution. Test data can be added, modified, and deleted from the datapool and substituted in the test during execution without any modifications to the test.

Datapools contain three structural elements:

Datapools are created with the New Datapool wizard:

  1. Open the Test Perspective, right-click in the Test Navigator, select New > Test Element... > Test Assets > Datapool, and click Next.
  2. Select the parent folder and define the name of the datapool and click Next.
  3. Provide a description for the datapool.
  4. Provide the dimensions for the datapool. The dimensions represent the number of variables (or columns) and records (or rows) in each equivalence class of the datapool.
  5. Test data can be created and edited in a Comma-Separated Value (CSV) file editor (for example, Microsoft® Excel®) and imported into a new or existing datapool. When working with large quantities of data, this approach is recommended. To import test data from a Comma-Separated Value (CSV) file into the datapool, select Import CSV file into the new datapool:
  6. Click Finish to create the datapool.
  7. The Confirm Open Editor dialog may appear (see the Window > Preferences... > Test > Open Editor preference), confirming if the new datapool is to be opened in the Datapool editor.

Related concepts
Datapool Editor

Related tasks
Importing a Comma-Separated Value (CSV) file as a Datapool
Exporting a Datapool as a Comma-Separated Value (CSV) file

Related samples
Tutorial: Accessing a datapool from a TPTP JUnit test