Show TOC

Testing RulesLocate this document in the navigation structure

Use

The rules testing feature allows you to check the correctness of your rules before you deploy and execute them. You can only test rules based on XML schema.

Example

Consider rules to determine if an applicant is eligible for the credit card he or she has applied for. After you have created the rules you can test your credit card eligibility rules by using simulated data.

To test your rules you need to create and run a test scenario or a test case.

You need to do the following to run a test scenario:

  1. Locate the test scenario editor.

  2. Create the XML document and add it to the test scenario.

  3. Run the test scenario.

You need to do the following to run a test case:

  1. Create a test case.

  2. Set the target ruleset.

  3. Create the XML document and add it to the test case.

  4. Create the data source.

  5. Add the data source to the test case.

  6. Map XPath to constant values or header names in the data source.

  7. Set custom properties.

  8. Run the test case.

This section describes how to create and run a test scenario and a test case.