IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Testing modules > Unit testing > Running unit tests in the test client

Testing exports

If an export has a binding type that is supported by the integration test client, you can invoke and test the export directly through its binding and the value editor will be populated with values that are based on the binding type. Currently, the test client supports web services binding types and SCA binding types. If you have an export that does not have a supported binding type or does not have any binding at all, you can still use the test client to test the export. However, the test client will invoke the component that is wired to the export rather than invoking the export directly through a binding.

Testing an export is similar in many respects to testing an interface operation. If you have not worked with the test client before, you should read "Testing interface operations" and its subtopics before testing an export.

When you specify values for an export with an SCA binding type, it is similar to specifying values for any other kind of component. However, when you specify values for an export with a web services binding type, all of the input, output, and exception parameters are wrapped in a SOAP message. Each variable is automatically typed as SOAP and your values are specified in the SOAP message.

To test an export:


Procedure

  1. Open the integration test client, as described in the topic "Opening the integration test client."

  2. In the Configuration field, ensure that the correct test configuration is selected. A default test configuration is automatically created whenever you open the integration test client.

    If you did not open the integration test client by loading a test configuration that you saved earlier, the default test configuration will already be selected in the Configuration field.

  3. In the Module field, ensure that the correct module is selected.

  4. In the Component field, select the export that you want to test. The test client will list all exports found in the selected module or in any libraries or projects that are referenced by the module. If the test client supports the binding type used by the export, the Binding type is supported check box is selected.

  5. In the Interface and Operation fields, ensure that the correct interface and operation are selected.

  6. In the value editor, specify values for the export.

    When you invoke a web services binding export in the test client, the value editor is populated with a serviceAddress variable. This enables you to change the service address used to invoke the web service and allows you to route the invocation to a different monitoring tool, such as the TCP/IP Monitor.

    Also, when you invoke a web services binding export in the test client, the value editor is populated with the SOAP Security header. This enables you to specify your web service security credentials in the SOAP message.

    Information about using the value editor and data pool editor to specify values for exports is found in the test client topic "Value and data pool editors."

  7. Click the Continue icon

    . If the Deployment Location wizard opens, select the server where you want to deploy your selected module, as described in the test client topic "Deploying modules." The value editor returns the results of your test.

Running unit tests in the test client