Ruletest menu commands
- Last Updated: October 31, 2022
- 4 minute read
- Corticon.js
- Documentation
The following menu is available when the Ruletest editor is the active window.
The Ruletest menu has the following items:
- Testsheet
- Add Testsheet - Inserts a new Testsheet.
- Remove Testsheet - Deletes the specified Testsheet.
- Link To Previous Testsheet - Causes the Input panel of the second Testsheet to be populated with the date from the Output panel of the first.
- Change Test Subject - Opens a window that lets you select a new Rulesheet or Ruleflow to test in Corticon.js Studio.
- Cut Testsheet - Cut the active Testsheet.
- Copy Testsheet - Copy the active Testsheet.
- Paste Testsheet - Paste the active Testsheet.
- Rename Testsheet - Opens an entry window to change the Testsheet name.
- Move Backward - Moves the selected Testsheet tab one tab towards the beginning of the Ruletest.
- Move Forward - Moves the selected Testsheet tab one tab towards the end of the Ruletest.
- Move To Beginning - Moves the selected Testsheet tab directly to the start of the Ruletest.
- Move To End - Moves the selected Testsheet tab directly to the end of the Ruletest.
- Add Comments to Testsheet - Opens the Add Comment window to add and display a comment of up to 200 characters to the one selected item in the Input column. When no item is selected, the comment applies to the Testsheet – it can be of indeterminate length, and will be added to a Ruleflow report.
- Import
- JSON - Import a valid CorticonRequest JSON document into Corticon.js Studio as a Ruletest.
- Data
- Set to Null - Resets the selected Testsheet tree node to null.
- Go to Entity - Displays an entity when an association tree node is selected.
- Sort Entities - Sorts entity nodes alphabetically by name. One entity must be selected.
- Properties - Displays the Ruletest Properties window.
- Input
- Export Request JSON - Exports the active Testsheet's Input pane as a JSON document you name.
- Exclude Transients - Ignores attribute values that are transient data mode in output file. Toggling this setting under one tree toggles it for Input, Output, and Expected.
- Output
- Export Response JSON - Exports the active Testsheet's Output pane as a JSON document you name.
- Exclude Transients - Ignores attribute values that are transient data mode in tests. Toggling this setting under one tree toggles it for Input, Output, and Expected.
- Copy to Expected - Copies the data in the Output panel to the Expected panel.
- Expected
- Export Response JSON -
Exports the active Testsheet's Expected pane as a
CorticonResponseJSON document. - Exclude Transients - Ignores attribute values that are transient data mode in tests. Toggling this setting under one tree toggles it for Input, Output, and Expected.
- Export Response JSON -
Exports the active Testsheet's Expected pane as a
- Deploy - Compiles the Ruletest target without executing it.
- Run Test - Compiles (if needed) and executes Ruletest.
- Run Test with Rule Trace - Compiles (if needed) and executes Ruletest and produces the Rule Trace details.
- Output Validation > Validate - Reruns the color-coded validation of the Output and Expected data. See Review test results when using the Expected panel.
- Run All Tests - Executes all Testsheets in the Ruletest.
- Run All Tests with Rule Trace - Compiles (if needed) and executes all Testsheets in the Ruletest and produces the Rule Trace details.
- Report - Creates an HTML report and launches your browser for viewing. See Creating a Ruletest Report.
- Remove Invalid Nodes - Discards all invalid nodes in Input, Output, and Expected columns in all Testsheets in the Ruletest.
Execution Properties
When you choose to suppress selected level of messages in server output and logs, you might want to see that same behavior in your Ruletests first. These settings restrict each of the three types of Rule Messages (info, warning, and violation) from being posted to the output of an execution. They are test server settings that correspond to the properties:
com.corticon.server.restrict.rulemessages.info
com.corticon.server.restrict.rulemessages.warning
com.corticon.server.restrict.rulemessages.violation
Also, you can choose to suppress the work document output in server output and logs, and you can test that same behavior (suppressing the Output pane) in your Ruletests first.
The following execution property suppresses the creation of the output pane, and displays just rule messages:
com.corticon.server.restrict.response.rulemessages.only
You can see the impact of these restrictions in testsheets by engaging each of the toggles under Execution Properties on the Ruletest > Testsheet menu as shown:

When an option is checked, messages of that type are suppressed:

Clicking an option again clears it, so that the message type or output is again produced.
Importing that message will toggle—in this example—the corresponding Testsheet options, Restrict Info Messages and Return Only Rule Messages.