For information on testing the adapter in managed mode in WebSphere
Application Server, see Validatingcode with Rational Application Developer /
WebsphereApplication Server.
Installing the test client
Totest your adapter in a runtime environment, you must first install a test client
on the target WebSphereProcess Server.
1. Install the test client, TestController.ear, on the target WebSphereProcess
Server. Locate the file <WebSphere Integration Developer>\eclipse\plugins\
com.ibm.wbit.comptest.core\TestController.ear on your WebSphere
Integration Developer system (this file was installed with WebSphereAdapter
Toolkit).Follow the steps in “Creating and exporting a resource adapter” on
page 206.
2. Apply the CompTestpatch to the target WebSphere Process Server if the server
is not installed on the same machine as WebSphereIntegration Developer. If
you installed the test client on a machine that is not running WebSphere
Integration Developer, (for example on anAIX, HP-UX or Solaris workstation
that is running WebSphereProcess Server), then you must install this patch.
The patch is located on the WebSphereProcess Server ifix website and contains
two JAR files: CompTestCommon.jar and CompTestController.jar. Toinstall
them, unzip the patch to the root directory of WebSphereProcess Server.
Testing outbound functionality
Youtest 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 WebSphereProcess Server,
you can test outbound functionality by following the procedure below.
1. Open the test module in the Assembly Editor.Right-click the test module in the
Navigation pane and select TestTest Module.
2. Configure the adapter instance. The TestClient 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 value(s) you
want sent to the adapter and click Continue.
198 WebSphereAdapters: WebSphereAdapter Toolkit User Guide