Produce informative results
Validate key pages
It is important to check that the server response is valid under load. This is to make sure not only that the scenario works as expected, but also that the load imposed does not cause errors in the application
NeoLoad automatically detects requests containing errors, in particular using the HTTP response code. For example, NeoLoad will log a request error if the response contains a 500 internal error. However, many web applications do not return the appropriate HTTP error code when handling an error, which means that for these, NeoLoad cannot automatically detect the fault.
These cases must be processed individually by checking the validity of the content returned by the server at key points within the application. This may entail checking for the presence of an expected text, for example "The operation was successful", or making sure the response does not contain "Error".
- To define a Container value
- In the Virtual User profiles, click on the request whose server response requires validating.
- Click on the Validation button underneath, to the right.
- Add a validation for the content.
- Select a validation method: contains or does not contain a simple text, or use a regular expression.
Once the test is finished, select the requests containing errors, or those where the validation failed, in the errors panel. The content of the corresponding server response may then be analyzed to determine the cause of the problem.
Note that validation uses up resources (CPU, memory) on the Load Generator, and that it is usually wiser to restrict its use to testing key pages only (for example, those that provide access to a database, or those more likely to produce errors).
Begin with low volumes
Proceed step by step:
- Use the Check function to validate the scenario for a Virtual User type. This will play the Virtual User once, displaying the details of the sent request and the server response to each HTTP request. See Check a Virtual User.
- Begin with a short test and a light load. Correct any application errors occurring under the light load before carrying out tests using heavier loads.
Stop Virtual Users containing errors
When a Virtual User receives an error, it should normally stop running. If this does not happen, it could continue playing requests that have no meaning. For example, if the user login fails, there is little point sending further browsing or search requests to the application as it will only distort the response time statistics for those pages.
Each Virtual User type may be configured to stop running in case of error or failed assertion.
Use Containers
Each transaction (registration, on-line purchase...) may be composed of several web pages. Statistics may be obtained by transaction by grouping these pages in a Container.
Configure monitors
NeoLoad allows you to retrieve performance data from most server infrastructures using Monitors. Configure Monitors on all your infrastructure key servers to monitor: CPU, memory, hard disk and network usage on the web, application and database servers. See Monitors.
Home