< Previous | Next >

Test the module

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.

To test the module:

  1. In the Business Integration view, expand HelloWorldMediation and double-click Assembly Diagram. The assembly diagram opens.
  2. Right click on the HelloWorldMediationExport export component and select Test Component. The integration test client opens.

  3. 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:
    Value editor
  4. At the top of the events list in the test client, click the Continue icon Picture of the Continue icon.

  5. The Deployment Location dialog box opens. Ensure that your server is selected and click Finish.

  6. 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:
    Test results
  7. 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:
    Invoke menu item
    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.

  8. Use File > Close All to close all open editors. When prompted to save your test client session, click No.





Feedback



(C) Copyright IBM Corporation 2007, 2008. All Rights Reserved.

< Previous | Next >