You can create an entity with tables in a data set. When you create an entity, you select the driving table. Test Data Manager retrieves the related tables in the data set based on the constraints. You can add filter criteria to the driving table to filter source data when you create the subset of the data set. You can disable relationships between tables in the entity.
Open the required data set.
Click
Related Data Sets
and open the
Subset Components
tab.
Click
Actions
New
Entities
.
In the
New Entity
dialog box, enter a name and optional description for the entity.
Click
Select Table
to select a driving table from the list.
Click
Save
.
Test Data Manager adds the related tables to create the entity and displays a diagram of the relationship between the tables in the entity. You can view a list of the tables or a list that shows the relationships between the tables.
To create a subset of the data based on filter criteria, click
Edit
in the
Properties
pane.
The
Edit Criteria
dialog box appears.
To add criteria for a column, click the
Entity Criteria
tab.
Click the
Add Criteria
button.
Select the columns on which you want to filter data and click
OK
.
The columns that you select appear in the columns list in the
Entity Criteria
tab.
To define the filter expression in the entity, select the attribute from the Attribute list. Choose
Value
to enter a value or
Parameter
to enter a parameter.
You can indicate a filter condition in the entity, but define the expression in the plan. You can choose to create multiple criteria with parameters and include required parameters when you run a workflow.
Select an operator from the list to filter the data.
If you enter a filter condition, enter a specific value or choose the parameter from the list of parameters to complete the filter expression. Criteria parameters can be project parameters or global parameters. Global parameters are indicated with an asterisk (*).
Click
Save
for each filter criteria that you create. If you define multiple filters in an entity, the filter conditions act as "AND."