Define sets
Sets can be defined for the input, output, and return values of test data tables and for the input and output values of stub data tables. A set is shown in a data table by curly braces ({ }) and by as many comma-separated values as required to define the set.
Set values can be of almost any data type and can also include references to object data types. When strings are used as set values, the strings must be enclosed in double quotes.
To define a set:
- Position the cursor in any data table cell that is not grayed out and can accept a set of values.
- Right-click in the cell and click Define Set. This opens the set editor.
- Type the first element in the set and click Add.
- Repeat for each additional element in the set. Optionally, you can change the order of the elements in the set by selecting an element and clicking Up or Down.
- Press Enter or click anywhere outside the cell to finish defining the set.
Example
The following set has three test values: .
{"USD", "EUR", "YEN"}
Related concepts
Test data tables
Sets and ranges