The next task is to run and test the module you just deployed.
You will use the integration test client to test the module by giving
it sample data and viewing the result.
- In the Business Integration view, expand HelloWorldMediation and
double-click Assembly Diagram. The assembly
diagram opens.
- Right click on the HelloWorldMediationExport export
component and select Test Component. The integration
test client opens.
- In the Value column of the value
editor table (located in the lower right corner of the test client),
double-click a cell to enter edit mode and then enter Mr for title, Phil for firstName,
and Bar for lastName. Tip: Click
the down arrow and press the Enter key after
typing. The value editor is shown in the following figure:
- At the top of the events list in the test client, click
the Continue icon
.
- The Deployment Location dialog box opens. Ensure that your
server is selected and click Finish.
- The User Login window opens. If
you did not change the default user ID and password of the server
during installation, click OK. Otherwise, type
the user ID and password that you specified during installation and
click OK. The test client code that runs on
the server is started, and if necessary any modules with changes are
published, and the test is run. You see events in the Events list
showing execution flowing through the components in the assembly diagram
and fine-grained events of the execution flowing through the primitives
in the mediation request and response flows. The result returned should
be the string "Hello Mr Phil Bar", as shown
here:
- Optional: You can continue testing. Select the little
down arrow icon beside the first icon in the toolbar above the Events
list and then select Invoke, as shown here: A new Invoke event appears in
the events list, and the original input data for that test shows in
the Initial request parameters value editor.
Change Bar to BarAgain and
rerun the test, again by clicking the Continue button.
- Use File > Close All to close all
open editors. When prompted to save your test client session, click No.