About the Validators Panel
On the Validators panel, you view and create validation rules for server responses (HTTP requests) and WebSocket server messages. A validation rule compares a variable that stores data extracted from the response with another variable or constant value. When LoadComplete processes the server response (or server message), it first uses Data Selectors to extract data from the response to variables, and then compares the variable contents with variables or constant values using the validation rules.
LoadComplete uses the panel for these operations:
- Request (HTTP requests)
- WebSocket Connection (a request that establishes a WebSocket connection is a regular HTTP request that includes WebSocket-specific data.)
- WebSocket Server Message
Here are sample views of the panel:
By default, the Validators panel is on the Response page
WebSocket Server Messages
Each row in the panel corresponds to a validation rule. The Variable cell contains the name of the variable to be compared with the baseline value from the Variable or Value cell. The Operation column specifies verification condition (Contains, Equals, and so on).
Creating, Editing and Deleting Validators
Right-click somewhere within the panel and then click New Item.
In the Variable column, specify the variable whose value you want to validate.
In the Variable or Value column, specify the baseline value or the variable that stores it.
Specify the needed condition in the Operation column.
Right-click the desired cell and select Edit from the context menu.
– or –
Click the desired cell one time.
– or –
Select the cell and press F2.
To specify a variable, you can also click and choose the desired variable in the subsequent dialog.
Press Enter to confirm the input, or Esc to cancel it.
Right-click the validation rule in the panel and then click Delete.
You can create several rules for checking the same variable.
Variable names should start with the @ symbol, that is,