To instruct LoadRunner
Working with VuGen · Configuring Run-Time Settings
Creating Vuser Scripts
Chapter 6, page 101
To instruct LoadRunner to continue on error for the entire script, except for the
following segment, enclose the segment with LRD_ON_ERROR_EXIT. and
LRD_ON_ERROR_CONTINUE statements:
In addition to the LRD_ON_ERROR statements, you can control error handling
using
severity levels
. LRD_ON_ERROR statements detect all types of errors--
database related, invalid parameters, etc. If you want LoadRunner to terminate the
Vuser only when a database operation error occurs (Error Code 2009), you can set
a function's severity level. All functions that perform a database operation use
severity levels, indicated by the function's final parameter,
miDBErrorSeverity
.
VuGen supports the following severity levels:
LRD_ON_ERROR_EXIT;
lrd_stmt(Csr1, "select..."...);
lrd_exec(...);
LRD_ON_ERROR_CONTINUE;
Definition
Meaning
Value
LRD_DB_ERROR_SEVERITY_ERROR
Terminate script execution
upon database access errors.
(default)
0
LRD_DB_ERROR_SEVERITY_WARNIN
G
Continue script execution upon
database access errors, but
issue a warning.
1