To create a test template, define the "Given" and "Expect" columns by using the expression editor below.
To start off, right-click a cell in the table and use the contextual menus to insert new columns and rows.
Before defining the individual test scenarios, set the instance and field mappings for each column. Select a header cell and in the Test Editor tab, choose the required field. Click Add to set the mapping.
Now, define the test scenarios. Each cell of the table must contain a valid expression.
In rule-based scenarios, the following expressions are supported:
Example expressions:
To start off, right-click a cell in the table and use the contextual menus to modify the generated table as required.
Before defining the individual test scenarios, verify the instance and field mappings for each column. If any changes are necessary, use the Test Editor tab to update the mapping.
Now, define the test scenarios. Each cell of the table must contain a valid expression.
Values in the GIVEN part of the table are evaluated as literal expressions, whereas values in the EXPECT section are evaluated as unary expressions. The correctness of these unary tests is verified using the results from a DMN evaluation.
DMN-based scenarios use the FEEL expression language. Supported data types are:
An empty cell is skipped from the evaluation.