Use Rule Trace View to drill into a Ruletest

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 View:

  1. Open a Ruletest file in the Ruletest editor.
  2. Click the toolbar button Run Test with Rule Trace:
  3. In the Rule Trace pane, examine the output, as shown here for the testsheet in Advanced Tutorial .

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 Viewer.
  • 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.format set to XML (instead of the default, JSON), the Rule Trace Viewer function is inoperative.