< Previous | Next >

Debug the mediation flow

Debug the StockQuote_MediationFlow component in the unit test environment by using the integration debugger.

The Instructions below assume that the runtime components have ready been installed. See Install the runtime components for information on how to install these components.
  1. To add a breakpoint to a mediation primitive, right-click on the primitive node in the request or response flow canvas, and select Debug > Add Breakpoint. Notice that a small blue icon is added to the top left-hand corner of the node, indicating that a breakpoint has been added to it.
    Add breakpoints to primitive nodes
  2. Select a server, right-click and click on it and select Restart in Debug to restart the server in Debug mode. Note that if the server is already started, you must stop and start the server again in Debug mode.
  3. When the server has started, open the Assembly Diagram of the StockQuote mediation module. Then right-click on the StockQuote_MediationFlow component and select Test Component.
    Test component
    The Unit Test Environment opens.
  4. In the Unit Test Environment you can select the modules, components, interfaces and operations you wish to test. For this sample, ensure the Detailed Properties are:
    1. Configuration: Default Module Test
    2. Module: StockQuote
    3. Component: StockQuote_MediationFlow
    4. Interface: StockQuoteService
    5. Operation: getQuote
  5. 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
  6. Next, push the Continue button Continue Button. The Deployment Location dialog opens.
  7. Select the server you started in Debug mode earlier and click Finish. Enter the User ID and password for your server. The default is admin/admin. When the flow reaches a breakpoint, you are prompted to open the Debug perspective. Click Yes to open the perspective.
  8. You can view the values of message elements, paths taken and breakpoints reached in this view. To continue the flow through to the end or to the next breakpoint click the Resume button Resume button.
< Previous | Next >