background image
<< Setting the General Run-Time Settings | To instruct LoadRunner >>
<< Setting the General Run-Time Settings | To instruct LoadRunner >>

Error Handling

Creating Vuser Scripts
Chapter 6, page 100
Working with VuGen · Configuring Run-Time Settings
In
Error Handling
You can specify how LoadRunner handles errors during script execution. By
default, when the script detects an error, it exits. You can instruct LoadRunner to
continue script execution, even when errors occur by specifying
Continue on Error
.
To specify "Continue on Error," select the Continue on Error check box in the
General run-time settings.
Error Handling for Database Vusers
When working with database protocols (LRD), you can control error handling for a
specific segment of a script. To mark a segment, enclose it with
LRD_ON_ERROR_CONTINUE and LRD_ON_ERROR_EXIT statements.
LoadRunner applies the new error setting to the whole segment.
For example, if you enable the Continue on Error feature and LoadRunner
encounters an error during replay of the following script segment, it continues
executing the script.
lrd_stmt(Csr1, "select..."...);
lrd_exec(...);