Record HTTP Traffic from a WebUI Test

Document created by Chris Sommerstad Employee on Jul 20, 2017
Version 1Show Document
  • View in full screen mode

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.

Prerequisites

  • 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.

Note: If a corporate proxy that requires a user name and password is in use, a “cross-domain” version of the browser (either Internet Explorer or Firefox) is required for both recording and playback of WebUI compositions. Refer to Enabling Cross-Domain Browser Tests.

Steps

  1. 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.

  1. 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.

  1. Once the WebUI test composition is open, select HTTP(S) Message Recording and then click New.

 

The Recording Editor appears.

  1. In the Recording Editor, select the Conductor to record from and click Next.

 

  1. Select the network interface and optional filters.

 

Optionally, check Enable HTTPS Recording if the test involves an HTTPS site.

Refer to Creating a Packet-level Recording if you are working with an HTTP site. Refer to Creating an HTTPS Recording if you are working with an HTTPS site.

  1. Once the settings are complete, click Record (on the lower right).
  2. 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.

  1. 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.

 

  1. 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.

 

Further Steps

Attachments

    Outcomes