Test Cases
A test case is one of the testing tools that can be used with Policy Modeling for repeated extensive testing and what-if analysis. Test cases are collected into testing documents, and can immediately confirm that all rules are giving expected outcomes, and identify if any rule change has had any inadvertent side effects. For the long term maintainability of rules, test cases should always be created whenever rules are developed.
Test cases specify the data that would be loaded at the start or entered during the interview and expected outcomes. Test cases can also be used with sample data (contained in a test data connector file) that specifies the data that would be dynamically loaded during an interview.
Test cases can be executed as often as needed. If needed, hundreds or even thousands of test cases can be managed in a single project. Logging information is available that shows how long it takes to execute each test case.
Test cases are defined in Microsoft Excel. This enables you to:
- Easily create variations on test cases
- Share common data across multiple test cases
- See differences between actual and expected results
- Keep test results from previous policy versions to see how policy changes affect outcomes
- Use standard Excel features to chart and analyze results
Tip: There are testing cases in the Copyright Permissions, DMV Document Guide, myBenefits, Parental Leave Calculator, Retail Discounts and Travel Compensation example policy models that are installed with Policy Modeling.
For more information, see: