By default, LoadView allows up to 15 minutes for script execution during a load test. If the script does not complete within this time frame, the system marks the test session as failed, generates an error and aborts the script execution.

If you need to simulate a complex user journey or workflow that requires extended interaction time on the target application, you can extend the script execution timeout to a maximum of 50 minutes by adding a timer directly in your script.

How to Set a Custom Script Timeout

To increase the script execution time limit, insert the following command into your script:

SendEndScriptTimer(TimeSpan.FromMinutes(25));

This example sets the script execution timeout to 25 minutes. If the script runs longer than the specified duration, it will be automatically aborted.

If multiple SendEndScriptTimer commands are included in a script, only the last one will be applied during execution.

The SendEndScriptTimer setting is not applied during test validation. Validation runs with the default 15-minute timeout. If your script exceeds this limit during validation, you may see a timeout error. This error can be safely ignored—your script will run with the configured timeout during the actual load test.