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
- In the Projects toolbox tab, select an orchestration. The orchestration is displayed in the Studio workspace.
- In the orchestration, right-click on the Provide Service activity. The Verify Activity menu is displayed.
- In the Verify Activity menu, select Invoke Service. The Invoke Service window is displayed, as shown in Figure 1.
- 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
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.