Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleContents

Table of Contents
indent15px
stylenone

Invoking the test

The transformation created in a an eMapper project can be tested by performing the following steps:

Click Tools > Test Mapping Mappings in the Fiorano eMapper's menu bar or click the Test button .

Image Added
Figure 1: Invoking the test from Tools menu

Alternatively, click the Test Mappings Image Added button in the tool bar.

Image RemovedImage Added
Figure 12: Invoking the Test optiontest from the tool bar

The Test XSL wizard is displayed, as shown in the below figure. The Transformation can be tested by following these steps:Following sections explain how the transformation is tested.

Providing MetaData

...

The Test XSL wizard has two

...

panels, the MetaData

...

panel and the Test Mappings

...

panel.

...

The output structure for which the transformation is being tested can be chosen from the Select Output Structure list provided at the top of the

...

Meta Data panel.

The text area, by default shows the transformation generated automatically by the eMapper for the specified output structure.

...

Disabling Always Load From eMapper

...

option provides options to modify the transformation. This allows the user to modify the XSL.

Specify the XSL in the panel and move to the next

...

panel to perform the transformation.Input XMLs

Image Added
Figure 3: Metadata Page

Testing the transformation

Input XML

The Test Mappings page has two tabs: Input XML

...

 tab and Output XML

...

 tab.

...

The Input XML tab, as the name suggests, is used to provide the input XMLs. This tab in turn has sub tabs for each input structure loaded in the eMapper.

A sample XML can be generated from the corresponding structure by clicking

...

the Generate Sample XML

...

Image Added button present in the tool bar of an input tab

...

Image Removed
Figure 2: Metadata Page

...

; the Generate Sample XML dialog box is displayed. The default values are appropriate in most situations. Provide the desired values and click OK to generate a sample XML.

...

Image Added
Figure

...

4: Selecting the sample Input XML generation options

The sample XML is generated in the Input XML tab.

...

Image Added
Figure

...

5: A Sample Input XML

Options to load input XML from a file and validate the input XML are provided in the tool bar. Validation errors if any will be displayed at the top of the wizard.

The Input XML tab also contains a Parameters tab that can be used to define parameters to be used while transformation. The required parameters can be added to the table provided in this tab.

System Properties, if needed, can be defined from the System Properties tab. For example, while using Lookup Functions, a system property needs to defined pointing to the db.properties file which holds data for oracle data base.Testing the transformation

Output XML

Click the Apply Transformations button to test the defined transformation

...

; the output XML

...

gets displayed in the Output XML tab.

...

Image Added
Figure

...

6: The Output XML resulting from the Transformation

If the test fails, the respective error message appears on the Test Mappings panel.

Image Added
Figure 7: Error message appearing in Test Mappings panel

Adaptavist ThemeBuilder EngineAtlassian Confluence