< Previous | Next >

Test 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.
  8. If the application does not run successfully, try the following:
    • If you see a service runtime exception, check that the web service application is started. In the Servers view, select the server, right click and select Administration > Run administration console and log in. In the list of running applications under Applications > Enterprise Applications, check the status of the SQSample application and start the application if necessary.
    • If you see an error indicating that the module StockQuote cannot be found, make sure the StockQuoteApp application is running, by following the instructions provided above.





Feedback



This information center is powered by Eclipse technology. (http://www.eclipse.org)

< Previous | Next >