You can write your rules on XML schema and instantly check if your rules are working fine by creating a test scenario. You can use only one set of simulated data in a test scenario.
Locate the ruleset and double-click the ruleset.
For more information, see Locating the Ruleset
or
Locate the flow ruleset and double-click the flow ruleset.
For more information, see Locating the Flow Ruleset
In the ruleset editor that appears, choose the Test Scenario tab.
In the test scenario editor, choose in the top right corner.
In the dialog box that appears, the Choose XSD option is selected by default.
All the XML Schemas available in the DC gets displayed.
Select the XSD based on which you want the XML document to be created.
Choose OK .
In the screen that appears enter the name of the XML in the File name: field and choose Next .
Choose Finish .
The XML document opens in the editor in the Design view.
Expand the root element node and you should see all the elements on the left hand side.
Enter values corresponding to each element in the cells on the right hand side as shown below:
Always enter double and float type values in the format: 0.0 .
Integers need not be in the specified format.
Save the changes.
In the test scenario editor, locate the XML Documents for Test Input section and choose the Add XML button.
In the dialog box that appears, select the checkbox referring to the XML document you created and choose OK .
The XML document gets listed in the XML Documents for Test Input table.
Save the changes.
You can optionally add a definition as input and output data.
Adding a Definition as Input DataIn the Input Definitions section, choose the Add button.
In the dialog box that appears select the checkbox referring to a Definition and choose OK .
The definition appears in the Input Definitions table.
Enter the value in the relevant cell in the Input Value column.
In the Output Definitions section, choose the Add button.
In the dialog box that appears select the checkbox referring to a definition and choose OK .The definition appears in the Output Definitions table.
In the test scenario editor, choose .
In the Rule Testing Console you should see the output of rule execution. You should also see the list of conditions that got satisfied and conditions that failed.
If you do not see the Rule Testing Console window, choose
In the dialog box that appears, expand the Rules node and choose Rule Testing Console and choose OK