Test rule scenarios in the Ruletest Expected panel
- Last Updated: March 24, 2022
- 2 minute read
- Corticon
- Version 6.3
- Documentation
Using Ruletests, you can submit request data as input to Rulesheets or Ruleflows to see how the rules are evaluated and the resulting output. You can make Ruletests even more powerful by specifying the results you expected, and then seeing how they reconcile with the output. Running the test against a specified Rulesheet or Ruleflow automatically compares the actual Output data to your Expected data, and color codes the differences for easy review and analysis.
You can establish the expected data in either of two ways:
- Create expected data from test output:
- Create or import a request into a Ruletest.
- Run the test against an appropriate Rulesheet or Ruleflow.
- Choose the menu command , or click
in the Corticon Studio toolbar.
- Create expected data directly from the Vocabulary:
- Drag and drop nodes from the Rule Vocabulary window to create a tree structure in the Expected panel that is identical to the input tree.
- Enter expected values for the Input attributes as well as the attributes that will be added in the Output panel.
Note: See the topics in Techniques that refine rule testing.