IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > Adapter Toolkit > Validating the code > Testing the adapter in managed mode

Testing outbound functionality

You test outbound processing by configuring an adapter instance, selecting test parameters, and optionally executing the test in debug mode to pause at breakpoints.

After you have created and exported your adapter to IBM BPM, you can test outbound functionality by following the procedure:


Procedure

  1. Open the test module in the Assembly Editor. Right-click the test module in the Navigation pane and select Test > Test Module.

  2. Configure the adapter instance. The Test Client displays a panel in which you select the Configuration, Module, Component, Interface and Operation you want to test. Make these selections, including the verb and the values you want sent to the adapter and click Continue.

    Test module configuration

  3. Select the testing mode and click Finish to start the test. On the Deployment Location screen, select IBM BPM to test in managed mode (optionally you can select Eclipse to test in unmanaged mode). In addition, you select Run or Debug mode. If you select Debug mode, you can set breakpoints in your code; when the test reaches a breakpoint, IBM Integration Designer displays the Debug perspective.

    A screen informs you that the test is running. Then, if the adapter is successful, the business object you specified is populated with the return data.


What to do next

To run another test, click Invoke in the top corner of the Assembly Editor.

Testing the adapter in managed mode