WebSocket Server Message Operation

Applies to LoadComplete 4.97, last modified on May 20, 2019

The Server Message operation corresponds to a WebSocket server message that a web client application receives from the tested web server. In fact, this operation indicates a place in your scenario, where LoadComplete waits for the message from the server. You can use the operation properties to get response data and validate them to save to variables for use in subsequent requests.

The Server Message operations are recorded. You cannot create them manually in the scenario editor. However, you can move these operations between pages in the recorded scenario.

By default, after recording the Server Message operations are disabled. This means that LoadComplete does not expect to receive them from the server during the playback. This happens because the WebSocket traffic is asynchronous, and in general case, the client and server send messages independently of each other.

If your client web application and the server send messages through a socket connection synchronously, you can configure the recorded scenario to wait for appropriate server messages during the test run. See Enabling Synchronous WebSocket Server Messages.

For information on WebSocket support in LoadComplete, see Support for WebSocket Protocol (HTML5).

The Think time box at the top of the editor specifies the number of milliseconds LoadComplete will wait before executing the operation (that is, the wait time before it starts waiting for the server response). In most cases, it is reasonable to have 0 in this property for the Server Message operation.

The SLA edit box at the top of the editor specifies the maximum acceptable duration of the operation, in milliseconds.

Note that the operation properties are meaningful only if the operation is enabled. By default, the Server Message operations are disabled (see above).

The editor uses the following panels to display operation properties:

Panel Description
Message Header The message header data.
Message Contents The message contents (if any). You can also edit the message data on this page (that is, you change the data that LoadComplete will expect to receive from the server in the response).
Data Selectors A list of data selector rules (LoadComplete uses them to extract data from responses and save them to variables).
Provides Data For A list of requests that use variables extracted by the rules on the Data Selectors page.
Validators A list of rules for checking the response contents.

Information about the erroneous settings is displayed in the editor’s header area.

See Also

Support for WebSocket Protocol (HTML5)
WebSocket Connection Operation
WebSocket Client Message Operation
Operation Reference

Highlight search results