Datapools can be used to define the input, output, and return values
of test data tables, and to define the input and output values of stub data
tables. When a data table cell is linked to a datapool, the data table considers
a variable (column) of the datapool as a set of values. The datapool is shown
in the data table as a hyperlink.
Before linking to a datapool, you must have an existing datapool with
at least one equivalence class and one defined variable. Datapool variables
can use only primitive data type values or Strings.
To link a data table cell to a datapool variable:
- In the test or stub data table, right-click the cell that you want
to link to a datapool and select Link to Datapool. This opens the Datapool Variable Selection window.
- In the left pane, expand the test project and datapool and select
a variable.
- In the right pane, select an equivalence class of the variable.
- If you want to use an noncompliant data type, clear theCheck
datapool variable type compliance option. When this
option is selected, only primitive or String variable types can be selected.
Using other data types might cause the test execution to fail. Clear this
option only if the datapool variable is of a custom variable type that is
compatible with a primitive or String variable type.
- Click OK.
A hyperlink is created in the data table, with the form datapool://<path>/<file>::<variable>.<equivalence
class>.