Run Rule Trace View on the Ruletest
- Last Updated: September 18, 2024
- 2 minute read
- Corticon
- Version 7.2
- Version 7.1
- Version 6.3
- Corticon.js
- Version 2.3
- Tutorials
You can get a dynamic view of all the actions and rules in a ruletest by running the test with rule trace. It reveals every rule that fired in a way that lets you sort, highlight, and locate every action and rule. You can even make changes to rulesheets and then the rerun the tests.
To run a Ruletest with Rule Trace:
- With the
use_CashBack.ertfile open in the Ruletest editor, click the toolbar button Run Test with Rule Trace:
- In the Rule Trace pane, examine the output:
The results of a rule trace are dynamic:
- Highlight—Click anywhere on a line to highlight that element in the Testsheet output. Click on any item in the Ruletest to see all the rules related to that element highlighted in the Rule Trace panel.
- Locate—Double-click on any line to open the related Rulesheet positioned at the Action line and rule. The Rulesheet is in editable form so you can quickly make changes and rerun to see the effect of the change.
- Sort—Click any column header on the Rule Trace tab to sort the tab content in ascending order. Click again to sort into descending order.
This dynamic feature is best presented in this video:
For more information, see Trace rule execution .
Note: See how the rule trace view
helped in a large project in the blog Fast Rules Diagnostics and Root Cause Analysis with the New Rule
Trace Viewer.
Note:
- If the results are overwhelming, try changing the test subject to just one Rulesheet or disabling some rules.
- The Rule Trace Viewer is based on JSON. If you have the
Studio property
com.corticon.tester.ccserver.execute.formatset toXML(instead of the default,JSON), the Rule Trace Viewer function is inoperative.