When you create an entity, you select the driving table. Test Data Manager retrieves the related tables based on the constraints. You can add filter criteria to the driving table to filter source data when you create the data subset database. You can disable relationships between tables in the entity.
To use parameters in an entity, you must create the entities in the project before you create the entity. Before you create an entity, perform data discovery to identify constraints. Add constraints to the source to define the child tables.
Open a project.
Click
Define
Data Subset
.
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 and click
OK
.
Click
Save
to create the entity.
Test Data Manager 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 selected 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. The list of parameters includes project and 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."