Why does the Virtual User not behave as expected?
If, during playback, the Virtual User behaves in an unexpected manner (no record created in the database) or contains errors, it is more than likely that some requests are being replayed with faulty parameters.
- Find the faulty request:
- NeoLoad detects an error when the response contains an HTTP error code.
If the page returned by the server contains the code 200, NeoLoad will not detect the error. To be able to detect it, add assertions or manually check which pages are returned during the Virtual User validation process (use the Open in browser button).
- Find the parameter that needs changing
- Usually, the parameters to be changed are IDs. You can repeat the recording, for example, and compare the requests to see which IDs differ.
- Replace the appropriate value
- To retrieve a variable, use a Variable Extractor. Next, replace the parameter with the variable created.
Failure to handle a dynamic parameter causes errors.
Generally speaking, we may need to extract and replace some data.
Home