If you want to stop the execution of your script on error,
how do you do that?

Answer Posted / mahesh sv

The lr_abort function aborts the execution of a Vuser
script. It instructs the Vuser to stop executing the Actions
section, execute the vuser_end section and end the
execution. This function is useful when you need to manually
abort a script execution as a result of a specific error
condition. When you end a script using this function, the
Vuser is assigned the status "Stopped". For this to take
effect, we have to first uncheck the ?Continue on error?
option in Run-Time Settings.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a host list for a scenario?

890


What the vuser script contain?

793


What is vuser-end section?

841


How can you set the number of vusers in loadrunner?

782


What are monitors?

798


How will you stop the execution of a script on error?

862


What is the load runner testing process?

798


What are the three sections of a vuser script and what is the purpose of each one?

782


Why we insert the rendezvous point while running the scenario?

814


How can we perform functional testing under load?

794


What are the different types goals in goal-oriented scenario?

769


How do you load a load runner agent?

874


Explain the difference between automatic correlation and manual correlation?

762


What is the difference between lr_error_message and lr_debug _message?

830


What is the modular approach of scripting?

1137