Web Vuser Functions (WEB) > General Topics in Web Protocol > Error Handling

Error Handling

You can specify how to handle errors during script execution. By default, when the script detects an error, it exits. To continue script execution, even when errors occur, select the Continue on Error check box in VuGen's General run-time settings.

To control error handling for a specific segment of the script, insert an lr_continue_on_error statement before and after the desired segment. The new setting is used until the end of the script execution or until another lr_continue_on_error statement is issued.

For example, if you enable the Continue on Error run-time setting and an error is encounteredduring replay of the following segment, execution.

lrd_stmt(Csr1, "select..."...);

lrd_exec(...);

To continue on error for the entire script except for one segment, enable the Continue on Error setting, and then enclose the segment with lr_continue_on_error statements.

lr_continue_on_error (0);

lrd_stmt(Csr1, "select..."...);

lrd_exec(...);

lr_continue_on_error(1);