How to Test Policies
To test a policy, you need facts on which the rules can be executed. You can add facts by specifying values in XML documents or database tables that you will point to in the policy tester, or you can use a fact creator to supply to the engine an array of .NET objects as facts. For more information, see Creating a Fact Creator.
To test a policy in the Business Rule Composer
In the Policy Explorer window, click the policy version that you want to test.
Click the Test Policy button (green arrow) on the menu bar.
The top pane displays the fact types that the policy rules reference.
To add a fact instance, click an XML Document or Database Table fact type, and then click Add Instance.
If you want to remove a fact instance, click the corresponding fact type, and then click Remove Instance.
If you want to add a fact creator that you have written, click Add in the fact creator pane.
Click Test.
The policy test trace output appears in the test output window.
Right-click in the output window to save, clear, select, or copy the output text.
Selecting fact to test a policy