LR Continue On Error

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Lr_continue_on_error

This function specifies how to handle errors. We can choose to continue running if on error occurs, or to
abort the rub execution.

Normally, we specify how the test rub component handles error during script execution using the
General section in VuGen’s Runtime Setting.

However, we can control error handling for specific segment of the script, b inserting the
lr_continue_on_error function before & after the desired segment.

Return value: No

Function calls & their return types:

Sr. NO. C-Constant Value


1 Lr_on_error_no_options 0
2 Lr_contine_on_error 1
3 Lr_on_error_skip_to_next_actio 2
4 Lr_on_error_skip_to_next_iteration 3
5 Lr_on_error_end_vuser 4
Lr_Set_debug_message ()

By using this function we can manually set the log options in the VUsers script.

We can place this function before the code in Action () method and close as per requirement

Sr No. LOG LEVEL C-Constant Value


1 Disabled Lr_msg_class_disable_log 0
2 Brief Lr_msg_class_breif_log 1
3 Extended Log Lr_msg_class_extended_log 16
4 Result Data Lr_msg_class_result_data 2
5 Parameter_Subs Lr_msg_class_Parameters 4
6 Full Run _-Time Trace Lr_msg_class_full_trace 8
7 Log on Error Lr_msg_class_JITlog_on_error 512

You might also like