+

Search Tips   |   Advanced Search

How do I validate the result of a request?

NeoLoad automatically detects requests containing errors using the HTTP return code notably.

For example, a request that returns '500 Internal Error' will be marked as an error by NeoLoad.

However, many web applications do not return an appropriate HTTP error code when managing their errors, which means that NeoLoad cannot automatically detect the problem . Consequently, management is on a case by case basis, verifying the validity of the content returned by the server at key points in the application. For example, you might want to check for the presence of an expected text "The operation was successfully completed" or check that the response does not contain the word "Error".

  1. In the Virtual Users tab, click on the request whose response needs to be validated.
  2. Click on the Validation button bottom right.
  3. Add a validation for the content.
  4. Select a validation mode: search for presence or absence of a simple text, or use a regular expression.

At the end of the test, select the requests containing errors or for which the validation failed in the Errors panel, then analyze the content of the corresponding server response to work out the reason for the problem. You can add other validation types, such as size of the response or its duration.

See Validate a server response<in_pdf_tuto>.


Home