Monday, October 7, 2019

Different type of LR messages in load runner | lr_message() lr_output_message() lr_log_message() lr_error_message() lr_set_debug_message() lr_vuser_status_message()

lr_message(): This is a message function that is used to send a message(s) to the log and the output window.

lr_output_message(): This is a message function that is used to send the message(s) with details like the script section and line number to output windows, log files and other test report summaries.

lr_log_message(): This is a message function that is used to send a message(s) to the Vuser or agent log file and not to the output window.

lr_error_message(): This is a message function that is used to send a message(s) to the output windows, log files and other test report summaries.

lr_set_debug_message(): This function changes the message logging level (for a part of the script) from what is set in the Run-Time settings. As shown below, a full trace is enabled only for the ‘index.htm’ request (even if the log level is set to ‘Standard log’ in Run-Time settings).

lr_vuser_status_message(): This function sends a message to the Vuser status area of the Controller and to the Vuser log.

Sunday, October 6, 2019

LR_EXIT functions in Load runner

LR_EXIT_VUSER : Exit without any condition and go directly to vuser_end action

LR_EXIT_ACTION_AND_CONTINUE : Stop current action and go to the next action

LR_EXIT_ITERATION_AND_CONTINUE: Stop the current iteration and go to the next iteration

LR_EXIT_VUSER_AFTER_ITERATION: Exit after the current iteration run is completed

LR_EXIT_VUSER_AFTER_ACTION: Exit after the current action run is completed