This topic explains how to record HTTP, JMS, and IBM MQ traffic for test generation purposes.
...
If you do not have Parasoft Virtualize, you can use SOAtest’s recording proxies to monitor and capture live HTTP, JMS, or IBM MQ traffic from a service as an application is exercised. These proxies can concurrently capture traffic that passes through multiple endpoints.
The recording proxy monitors traffic over the specified transport(s) as an application is exercised. SOAtest "listens" to traffic requests and responses, then builds a traffic file of legitimate request/response pairs. This traffic is then used to generate a test suite that represents the captured behavior in preconfigured test client tools.
JMS, IBM MQ, HTTP, HTTPS (SSL), Basic, Digest, and Kerberos authentication are supported; NTLM is not.
...
- Go to File > New > Other > SOAtest > Traffic > Record Traffic.
- For each endpoint where you want to record traffic, do the following:
- In the Configure Proxies for Recording Traffic dialog, click Add.
The wizard that opens will be pre-populated with any connections you have already configured. - Under Proxy Type, select the desired transport (HTTP, JMS, IBM MQ).
- Complete the proxy settings for the selected transport. See Customizing Grouping Criteria SOAtest, JMS Recording Configuration, or MQ Recording Configuration for details.
- In the Traffic file field, specify where you want to save the traffic file that will be created to capture this traffic. You can later use this traffic file to generate tests that represent the live traffic captured.
- Specify how you want traffic data recorded in traffic files:
- Append new session data adds new traffic data to an existing traffic file (the one specified in the Traffic file field). If the specified file does not already exist, a new file will be created.
- Overwrite session data overwrites the traffic data in an existing traffic file (the one specified in the Traffic file field). If the specified file does not already exist, a new file will be created.
- In the Configure Proxies for Recording Traffic dialog, click Add.
- Click OK.
- In the main wizard panel, click Next.
- Set the host and port of the application under test to the location specified in the wizard.
- From the application under test, generate the traffic that you want to record.
- Click Finish.
...
This section explains how to configure recording proxies that send and receive messages over the IBM MQ transport.
Sections include:
...
Prerequisites
Anchor | ||||
---|---|---|---|---|
|
Jar Files
SeeAdding Necessary Jar Files to the Classpath.
...
Specifying MQ Settings
Anchor | ||||
---|---|---|---|---|
|
Specify your IBM MQ settings as follows:
- In the Proxy (Client) and Target Application (Server) Connection Settings dialog, choose MQ for Proxy Type.
- Specify the MQ IBM MQ settings in the available fields. See below for more configuration details.
Info | ||||
---|---|---|---|---|
| ||||
This option specifies whether to use the message’s replyToQueueName header to determine where the proxy sends the response. It impacts responses to MQ IBM MQ messages of type MQMT_REQUEST. If Use replyToQueueName for Response is enabled, values from the incoming request will be used to determine where to send the response. If it is not enabled, the response will be sent to the queue specified in the UI. More specifically:
|
...
The server does not need to have its queues changed in this case.
In the IBM MQ or JMS recording wizard, provide the queue names as follows:
...
The client does not need to have its queues changed in this case.
In the IBM MQ or JMS recording wizard, provide the queue names as follows:
...