User Guide > Data Generation Techniques and Parameters > Expression Generation
  

Expression Generation

An expression generation rule is an ad hoc rule that generates data from an expression. You can create expression rules with the string, numeric, and date datatypes.
When you create an expression generation rule, you use the Expression Builder to create an expression. In the Expression Builder, you can choose from a list of columns and functions to include in the expression. To enter a join condition, you can choose columns and operators. Click the Add arrow to include the column in the expression.
If you select Override Data Type to Numeric for a column with string data type, you cannot enter a numeric expression.
The following image shows the expression generation parameters:
The New Generation Rule dialog box shows the expression and null values that you can create to generate test data.

Expression Generation Example

You want to create a Name column that combines the data from the FirstName and LastName columns. You use the following expression to create the rule:
CONCAT (FirstName+'/'+LastName)

Expression Generation Parameters

You can configure expressions to generate data for string, date, and numeric data types.
The following table describes the parameters that you can configure to generate expressions:
Parameter
Description
Expression
An expression that you can configure to generate test data.
If you select to override a string data type column with numeric data type, you cannot enter expression to generation numbers.
Null Values
A list of global rules or default rule that are available for the data type you select. A null value is value that a default rule or a global rule generates in the target column based on the datatype you select.
Invalid Values
A list of global rules or default rule that are available for the data type you select. Any value that does not follow the specified expression is not valid.