Creating a datapool in the workspace

You can create datapools in the workspace containing variable data that tests use when they run. You can use this method to create a datapool if you have not yet created the test that will use it.


  1. Click File > New > Datapool.
  2. In the New Datapool window, click the project that will contain the datapool. The project is displayed in the Enter, create, or select the parent folder field.
  3. In the Name field, type the name of the datapool, and then click Next.
  4. In the window for describing the datapool, optionally add a description, and select one of the following options:
    1. To manually add the data to an empty datapool, select Empty datapool.
    2. To import the data from a CSV file, select Import CSV file into the new datapool.
      1. In the CSV File field and type the name of a CSV file, or click Browse to navigate to the file.
      2. If the data in the CSV file is encoded differently from what the local computer expects, select the encoding from the Import Encoding list.
      3. The first row of the CSV file can contain column names. If so, select the First row contains variable names and suggested types check box.

        If this check box is not selected, columns are named Variable1, Variablen ... You can change the names when you edit the datapool.

      4. Typically, leave the First column contains equivalence class names check box cleared. Equivalence classes are used in functional, rather than performance, testing. Select this check box if you are using a datapool for both functional and performance testing, and the datapool already contains equivalence classes.
    3. To automatically generate data in the datapool, click Use HCL OneTest™ Data.
      Note: You must have installed HCL OneTest Data and specified the server path in Window > Preferences > Test > Datapool Creation. For more information, see Using HCL OneTest Data.
      1. In Type, select the data type to use in the datapool.
      2. In Size, specify the number of records to create in the datapool.
      3. In Seed, specify a number to reuse the same data each time. If there is no value, data is created randomly each time.
  5. Click Finish.


The new datapool is displayed. The following figure shows a datapool that has already been populated from a CSV file. For instructions on how to add data to or edit the datapool, see Editing a datapool.
 new datapool

What to do next

After you have created a datapool and added data to it, you must associate a value in the test with a column in the datapool.