Testing Maps

After you create and save a map, you can run a sample input file or files through your transformation and view the resulting XSLT output. You can run map tests on single or multiple inputs and outputs; however, your test must have at least one output for the Map Tester to work successfully.

After you run your test, you can also save the output file and compare it to output files from other tests.

Note: To test maps with user-defined extension functions, you must place the output .class file in a Map Plugin Extension Functions directory. See Testing Maps with User-Defined Extension Functions.

To test a map:

  1. Verify that there are no errors in the Task View and save your map.

  2. Right-click in the Map Editor and select Test Map from the shortcut menu.

  3. In the Test Map dialog box, click an item in the Schema column and select an item from the drop-down list to browse for the document instance for each source schema.

  4. Click Test to run the transformation.
    The test results display the target document instance. Each output schema has its own tab.

  5. Expand the target schema elements to review the results of the transformation.

  6. Click Save to save the XML output file of the current schema selection in your file system.