SOASTA CloudTest provides both the ability to record a user's browser actions in a browser UI, and the message-level network traffic that underlies those actions. In some cases, it may be desirable to have a test that demonstrates both browser actions and messages using the same actions. In those cases, you can use a WebUI test containing browser actions to record HTTP traffic against the same site.
Use the following instructions to create a recording from such a test.
- Make sure you have a SOASTA Conductor installed on the machine with the network traffic you wish to record.
- Make sure you have an existing WebUI test with at least one browser action in at least one test clip. The test can be entirely made up of browser actions or a mix of browser actions and messages.
- Once the above prerequisites are met, start the SOASTA Conductor you will use and ensure that it starts as expected.
The Conductor will drive the browser-based test as well as provide the HTTP(S) recording data stream.
- Open the composition that includes the WebUI test clips from which you want to record HTTP traffic.
If you're working with a WebUI test clip that you've just created, add it to a test composition before proceeding.
- Once the WebUI test composition is open, select HTTP(S) Message Recording and then click New.
The Recording Editor appears.
- In the Recording Editor, select the Conductor to record from and click Next.
- Select the network interface and optional filters.
Optionally, check Enable HTTPS Recording if the test involves an HTTPS site.
- Once the settings are complete, click Record (on the lower right).
- Switch to the open composition in the Composition Editor and play the WebUI test.
The test begins to run and the configured browsers launch to run the WebUI portion of the test. Meanwhile, the message-level traffic (HTTP or HTTPS traffic) generated by the test is recorded.
- Switch again to the Recording Editor. The Recording in Progress indicator is active (on the top right) while each message displays as it is recorded.
- Click Show Packets (on the upper right) to display the data stream at the packet level.
- Once recording is complete, press the Stop button. The completed recording is displayed in the Recording Editor. You can apply one or more Filters, elect to Show/Hide Packets, and when ready, use Convert to a Clip to create a test clip from this recording.