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
Installing the runtime components for
information on how to install these components. database.
- 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.
- Select a server, right-click and click on it and select Restart
-> 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.
- 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.The Unit Test Environment opens.
- 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:
- Configuration: Default Module Test
- Module: StockQuote
- Component: StockQuote_MediationFlow
- Interface: StockQuoteService
- Operation: getQuote
- 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.
- Next, push the Continue button
. The Deployment Location dialog opens.
- 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.
- 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
.