After you compile a data transformation class, you can (and should) test it. This chapter describes how to do so.
Using the Transformation Testing Page
The Management Portal provides the Test Transform wizard. You can access this from the following locations in the Management Portal:
Initially the Output Message window is blank and the Input Message window contains a text skeleton in a format appropriate to the source message. To test:
-
If your DTL code references the properties of the aux, context, or process systems objects, enter values for these properties to see the results as if the data transformation was invoked with these objects instantiated. The table for entering values appears only if the DTL references the internal properties of aux, process, or context systems objects.
-
Edit the Input Message so that it contains appropriate data. What displays and what you enter in the input box depends on your source type and class:
-
For EDI messages, the window displays raw text; have some saved text files ready so that you can copy and paste text from these files into the Input Message box.
-
For regular production messages, the window displays an XML skeleton with an entry for each of the properties in the message object; type in a value for each property.
-
For record maps, complex record maps, and batch record maps, you can enter raw text or XML.
-
Click Test.
-
Review the results in the Output Message box.
The following shows an example: