Creating and Running a Test Scenario
Use
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.
Procedure
Creating the XML Document-
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:
-
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.
-
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.