Testing maps

You can test the transformation defined in a map using one or more sample messages that match the source schemas for the map.

About this task

To test a map:

Procedure

  1. Click Test from either the Map Inputs or Map Outputs pane. The Test pane is displayed. The variables or parameters that show in the Select Input Test Files table depend on the type of task:
    • In the Test pane of a Map Inputs task, the variables that are mapped to the input parameters of the activity are displayed in the Select Input Test Files table.
    • In the Test pane of a Map Outputs task, input parameters of the activity are displayed in the Select Input Test Files table.
  2. Get sample data to use as input to the map, using one of the following options:
    • Generate sample data - To generate sample XML data valid against the source schema, select the Map > Generate Test Data from the toolbar menu.
    • Import sample data from files - For each parameter in the Find Test Files list, click [...] to browse for a sample message from your computer or a network drive. The selected message is displayed in the Selected Test Files table.
      Note: The sample message must be valid XML that meets the requirements defined in the source XML Schema for the map. If the map uses several source schemas, you can load a sample message for any or all of the schemas.
  3. Click Run Test. The transformation defined in your map is run against the sample message you specified in the Location column. The result of the transformation is displayed in the Test Result pane.

What to do next

Either save the transformation result, or clear it from the Mapping Editor panes.