You can create datapools
in the workspace containing variable data that tests use when they
run. Use this method to create a datapool if you have not yet created
the test that will use it.
Procedure
- Click .
- 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.
- In the Name field, type the name
of the datapool, and then click Next.
- In the window for describing the datapool, optionally add
a description, and then click Next.
- In the window for initializing the new datapool with the
contents of a comma-separated value file, go to the CSV
File field and type the name of a CSV file, or click Browse to
navigate to the file.
Note: If you do not want to use
a CSV file to initialize the data, click Finish.
An empty datapool opens for you to enter data directly.
- If the data in the CSV file is encoded differently from
what the local computer expects, select the encoding from the Import
Encoding list.
- The first row of the CSV file can contain column names.
If it does, 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.
- 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.
- Click Finish.
Results
The new datapool opens. 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.
What to do next
After you have created a datapool and added data to it, follow
these steps to:
- Associate a test with the datapool, as discussed in Enabling a test to use a datapool.
- Associate a value in the test with a column in the datapool, as
discussed in Associating a test value with
a datapool column.