Unit testing your connector components

Unit testing is key to the success of any development project and is basically a pass/fail test that verifies that components of your connector perform as expected.

About this task

During this phase, you perform a unit test that simulates the communication between a client and a web service that is exposed as a Web Service Provide activity.

Procedure

  1. In the Projects toolbox tab, select an orchestration. The orchestration is displayed in the Studio workspace.
  2. In the orchestration, right-click on the Provide Service activity. The Verify Activity menu is displayed.
  3. In the Verify Activity menu, select Invoke Service. The Invoke Service window is displayed, as shown in Figure 1.
  4. In the Invoke Service window, enter the header and body data and click Execute to start the test. To view the test activity, click the Show Response button.
    Figure 1. Invoke Service window
    Labeled diagram of the front of the appliance.
    Note: Be cautious when using the Reset button. It erases the existing content in the Invoke Service window and repopulates it with web service template information. Only click Reset when you want to start over with unit testing.

Results

When the test is completed, the results are displayed in the Verify toolbox tab. If errors are present, make the necessary corrections, then re-run the unit test.

What to do next

Perform integration testing to determine if your connector components are performing properly.



Feedback | Notices


Timestamp icon Last updated: Tuesday, 27 September 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.cdk.doc/cdk_unittest.html