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:
HTTP Requests 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).
Using Validators
Creating, Editing and Deleting Validators
Notes
-
You can create several rules for checking the same variable.
-
Variable names should start with the @ symbol, that is,
@variable_name
.
See Also
About Validating Response Contents
Creating Validation Rules
Request Operation
WebSocket Connection Operation
WebSocket Server Message Operation
Scenario Editor - Common Tasks