< Previous | Next >

Testing the mediation flow

After running the script, you have to add the StockQuoteApp to the running server. Then, you can test your mediation flow in the test client.

  1. To add the StockQuoteApp project to the server, right-click on the server and select Add and remove project.... Select the StockQuoteApp project from the Available projects list and click Add > to add it to the Configured projects list. Click Finish and wait for the server to finish publishing.
    Add project to server
  2. Open the Assembly Diagram of the StockQuote mediation module. Then right-click on the StockQuote_MediationFlow component and select Test Component. The Events page of the integrated test client opens.
  3. In the Events page, you can select the modules, components, interfaces and operations you wish to test. For this sample, ensure the Detailed Properties are:
    • Configuration: Default Module Test
    • Module: StockQuote
    • Component: StockQuote_MediationFlow
    • Interface: StockQuoteService
    • Operation: getQuote
  4. In the Initial request parameters table, you enter information by double clicking the cell in the value column. Double-click the value cell in the symbol row and enter AAA. In the same manner, enter CustomerA for the customerID.
    Unit Test Environment detailed properties
  5. Next, push the Continue button Continue Button to invoke the getQuote operation. The Deployment Location dialog opens.
  6. Select a server and click Finish. You can run mediation flows on either WebSphere Process Server or WebSphere Enterprise Service Bus. Enter the User ID and password for your server. The default is admin/admin.
  7. You will see the resulting values for qualityOfService and value in the return parameters.

Feedback

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

< Previous | Next >