Testing authentication using the integration test client

If you want to test your authentication implementation, you can use the integration test client. The integration test client enables you to test your modules and components and report the results of your tests. The testing is generally performed on the interface operations of your components, which enables you to determine whether the components are correctly implemented and the references are correctly wired.

To test authentication:
  1. In the Business Integration view, right-click the module that contains your import and select Test > Test Module. The integration test client opens, as shown in the following figure:
    Picture of the integration test client
    In the Events area of the integration test client, an Invoke event is automatically generated whenever the test client is started. (An Invoke event is an interactive event, which means that you must manually select an operation to test and specify some initial request parameters values for the operation before the test can continue.)
  2. In the Detailed Properties area of the integration test client, complete the following steps:
    1. In the Component field, ensure that the selected component is the component that you want to debug. For example, if you were working with the sample application that serves as a running example in these topics on implementing basic authentication, you would select sendWebServiceCallToServer.
    2. In the Interface field, ensure that the component interface is selected that contains the operation that you want to invoke.
    3. In the Operation field, ensure that the interface operation is selected that you want to invoke.
  3. In the Initial request parameters value editor, specify the input values for the selected operation in the Value column, as shown in the figure below:
    Picture of the value editor for the initial request parameters
  4. Click Continue. The Deployment Location wizard opens, as shown in the figure below:
    Picture of the Deployment Location wizard
  5. Ensure that the correct deployment location is selected in the Deployment Location wizard.
  6. In the Mode drop-down list, ensure that Run is selected and then click Finish to automatically deploy the module to the server and to invoke the selected operation. If your test is successful, the integration test client returns the result of your test.
If you want to learn more about the integration test client, see the integration test client topic Testing modules and components
Related tasks
Enabling security on the server
Creating a security token for the request message
Creating a token generator for the request message
Creating a required security token for the request message
Creating a caller part for the request message
Creating a token consumer for the request message
Disabling security on the server

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.