6.3 Testing Schema Mapping Policies

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

To access the Policy Simulator and test the Schema Mapping policy:

  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 Schema Map policy.

  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.

    Select the Simulation Point

    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 was generated.

  6. Select the Trace tab to see 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 view the output document that is generated from the Schema Map policy executed against the input document. In this example, it is the user Add event.

    Output tab

    You can edit the input and output document, then click Save As to save the output to an XML file.

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

    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 Schema Mapping Policy, click Finish to close the Policy Simulator.