+

Search Tips   |   Advanced Search


Record a WebSocket request

NeoLoad can record a WebSocket request automatically, composed of a WebSocket channel and a number of WebSocket requests.

In NeoLoad, a click on the Start Recording toolbar button displays the Start Recording dialog.

The WebSocket protocol option is checked by default : when the web application establishes a WebSocket connection, NeoLoad automatically detects it and records it. The WebSocket request detects the presence of a proxy server and automatically sets up a channel to pass through the proxy. The channel is established by issuing an HTTP CONNECT statement to the proxy server, which requests for the proxy server to open a TCP/IP connection to a specific host and port. Once the channel is set up, communication can flow unimpeded through the proxy.

When recording a WebSocket request, NeoLoad logs the WebSocket channel and actions:

In the recorded WebSocket channel Advanced properties, the Recorded request tab shows the connection request.

In the recorded WebSocket channel Advanced properties, the Recorded response tab shows the response recorded in the WebSocket.

  1. Click on the Start Recording toolbar icon.
  2. In the Start Recording dialog, ensure the WebSocket option is checked.
  3. Click OK.
  4. Browse the WebSocket application.
  5. Click Stop.
  6. Configure your scenario further in the Post-recording wizard.


Home