This chapter provides an overview of the Transformation Test utility, and discusses how to:
Run the Transformation Test utility.
Run the sample transformation test project.
PeopleSoft Integration Broker provides the Transformation Test utility, which you can use to test Application Engine transform programs without sending messages, and with minimal development effort. You use the Transformation Test component (IB_TRANSFORM_TEST) to access the utility.
The runtime Integration Broker messaging environment requires several development and administration activities to invoke an Application Engine transform program. At a minimum, you must define a queue, a service operation, sending PeopleCode, service operation handler, and routing including parameters for the transform program. However, because of its minimal requirements, the Transformation Test utility simplifies the process of testing and debugging your transform programs.
If your transform program does not use codesets for data translation, you need only to develop the program and provide an XML DOM-compliant file that contains sample message data to be transformed.
If your transform program uses codesets, you must also define two nodes, their codeset groups, codesets, and codeset values that are invoked by the program.
Select PeopleTools, Integration Broker, Service Utilities, Transformation Test to access the Transformation Test page.
Note. The project name you specify identifies the test you’re applying, and is for your reference only. It has no significance outside of this utility.
Program Name |
Select the name of the Application Engine transform program that you want to test. |
Source Node |
Enter the name of the node whose codeset group defines the structure of the input data. This field is used for codeset-based data translation. |
Dest Node |
Enter the name of the node whose codeset group defines the structure of the output data. This field is used for codeset-based data translation. |
File Name |
Enter the full path and name of the sample input message file. This is the path on the application server machine or a path that can be accessed from the application server. The file name may consist of up to 80 characters. |
Transform |
Click to apply the transform program to the sample input message. |
Message Text |
This field displays the output of the transform program. |
Note. For the current release, even if you do not use codesets, you still must enter values for the Source Node and Dest Node fields. You don’t need to define any nodes; just enter a string that qualifies as a valid node name (for example “ANYNODE”).
PeopleSoft provides a sample project called PT_IBTRANSFORM_TEST that you can use to run a sample test with the Transformation Test utility.
To run the sample test:
Select PeopleTools, Integration Broker, Utilities, Transform Utility.
Select the PT_IBTRANSFORM_TEST project.
In the File Name field, modify the value with your PS_HOME directory where indicated.
Enter Your PS_HOME Path Here\sdk\pstransform\samples\TRANSFORMTST.xml
Click the Transform button.
The test is successful when the following code appears in the Message Text box.
<?xml version="1.0"?> <Success>Hello World!</Success>