| ILOG JRules User Guide > Testing Rules with Rule Scenario Manager > Reference > Test Extractors and Operators > Overview of Test Extractors and Operators |
Overview of Test Extractors and Operators |
PREVIOUS NEXT |
A scenario definition includes a set of tests on the results of the ruleset execution. Each test consists of an extractor that compares via a logical operator a specified test value or a baseline report value to a calculated value extracted from the ruleset execution trace. Tests can indicate if rules have performed as expected. For example:
<test extractor="RULES_FIRED" operator="CONTAINS_NAMES"> Check_Credit.Bankruptcy, Check_Credit_Criteria.Approved</test>
In this test, RULES_FIRED extracts the names of the rules fired from the execution trace and checks to see if both Check_Credit.Bankruptcy and Check_Credit_Criteria.Approved are included. The test passes if both rule names are found in the list of all rules fired, otherwise it fails.
Sets of tests are independent of scenarios, allowing validations to be shared between different scenarios. You can save a set of tests as XML or in an Excel file that can be used in multiple scenarios or as a base for creating a new set of tests. Test files can also be imported and specified in scenarios defined in the Rule Scenario Manager Console.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |