Record service tests
When you record a test, the test creation wizard records interactions with the service, generates a test from the recording, and opens the test for editing. You can record a test session by invoking service calls with the generic service client or by using an existing client. You can also create a service test manually or from a Business Process Execution Language (BPEL) model.
- Service testing guidelines
Before you can test a service, you must set up test environment and incorporate these guidelines in order to produce reliable tests.- Verify WSDL syntax compliance for JMS services
Various Java™ Message Service (JMS) providers vary in the syntax used for describing services. Before testing JMS services, you must ensure that Web Services Description Language (WSDL) files comply with the requirements of the tool.- Record a service test with the generic service client
You can record a service test by invoking a series of calls with the generic service client. After you have successfully invoked the calls, select the results in the History section of the generic service client to generate a test. If you do not have access to a dedicated Java client for the service calls, the generic service client is the easiest way to generate the calls and to record a test.- Record a service test using an HTTP proxy
You can record tests for SOAP-based services or plain XML services by running a client program through a dedicated HTTP proxy. To record the test, the proxy intercepts the service calls and message returns between the client and the service. This interception can cause authentication problems because the client communicates with the recording proxy instead of the actual server.- Create a service test from a BPEL model
You can use Business Process Execution Language (BPEL) resources from workspace to automatically generate a set of service tests that corresponds to the paths that are run in a synchronous BPEL model.- Create a service test manually
You can create a service test without recording by simply adding the test elements as required and manually editing the test element details in the test editor.- Create a service test for WebSphere MQ
You can create an IBM WebSphere MQ test by adding the test elements as required and editing the test element details in the test editor.- Create a service test for a plain XML call
You can create a test for a plain XML call over HTTP, JMS, or IBM WebSphere MQ, by simply adding the test elements as required and editing the test element details in the test editor.- Change service test generation preferences
You can change default test generation values by changing the preference settings. The default settings, however, are appropriate for recording in most cases.