Create an advanced generation rule to combine more than one generation technique or to generate test data in a single column or multiple columns.
To access the
Policies
view, click
Policies
.
Click
Actions
New
Generation Rule
.
The
Rule Wizard
appears.
Enter a name and an optional description for the rule.
Select the advanced generation rule type.
Click
Next
.
In the
Input Columns
section, click
Add New
.
The
Add Column
dialog box appears.
Enter the column properties, such as the column name, data type, precision, and scale.
You cannot enter dependencies for input columns.
If you want to enter a parameter name for an input column, select
Parameterize Input Port
and enter the parameter name.
When you assign a generation rule, you need not map the input column that has a parameter value.
Click
OK
.
To enter more input columns, click
Create Port
in the
New generation Rule
dialog box.
In the
Variable Columns
section, click
Add New
.
Enter the column properties, such as the column name, data type, precision, and scale. If you have more than one variable column, you can specify the variable dependency.
Click
OK
.
The variable column appears in the list of columns.
To configure a rule for the variable column, click
Configure Rule
.
The New Generation Rule dialog box appears.
Select the generation technique. You can choose a conditional generation rule or the generation rule set.
Conditional. Specify conditional expressions and select the generation rules. Click
OK
.
Generation Rule Set. Specify the generation rules and the distribution percentages. You can also create a generation rule. To group the records based on the foreign keys, select Group record by foreign key. Click
OK
.
In the
Output Columns
section, click
Add New
.
Enter the column properties, such as the column name, data type, precision, and scale.