7.3 Testing the Filter

Designer comes with a tool called the Policy Simulator, which allows you to test your policies without implementing them in a production environment. You can launch the Policy Simulator through the Filter editor to test your policy after you have modified it.

  1. Click the Launch Policy Simulator icon Launch Policy Simulator in the toolbar.

  2. Select To Identity Vault or From Identity Vault as the simulation point of the filter.

  3. Select Import to browse to a file that simulates an event.

  4. Select the file, then click Open. This example uses the com.novell.designer.idm.policy\simulation\add\User.xml file, which simulates an Add event for a User object.

    The Policy Simulator displays the input document of the user Add event.

  5. Click Next to begin the simulation.

    Add event document

    The Policy Simulator displays the log of the Add event, the output document, and a comparison of the Input document to the Output document that is generated.

  6. Select the Trace tab to display the results of the Add event as you would through DSTRACE.

    Trace tab

    Click Clear Log, then click Repeat to run the simulation again with new trace log.

  7. Select the Output tab to see the output document that is generated when the filter is executed against an input document. The input document is the user Add event.

    Output tab

    You can edit the input and output documents. If you want to keep the changes, click Save As.

  8. Select the Compare tab to compare the text of the input document to the output document that is generated.

    Compare tab
  9. Click Repeat to select a different input document and see the results of that event.

  10. When you have finished testing the filter, click Finish to close the Policy Simulator.