Sometimes you may want the "Continue on error "to be enabled for some of the transactions and "Continue off on error" for some other transactions,then you need to use the below functions.
By using lr_continue_on_error function we can include a portion of the script instead of whole script. We need to enclose the requests that we are getting error in between lr_continue_on_error(1) and lr_continue_on_error(0)
With this load runner default http status codes will overridden on failures.
With this load runner default http status codes will overridden on failures.
Example:
web_url("EasyLoadrunner",
"URL=http://www.easyloadrunner.blogspot.com/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Snapshot=t12.inf",
"Mode=HTML",
LAST );
lr_continue_on_error(0);
Syntax:
lr_continue_on_error(0) --> for no option after error
lr_continue_on_error(1) --> for continue on error
lr_continue_on_error(2) --> for skip to next option on error
lr_continue_on_error(3) --> for skip to next iteration on error
lr_continue_on_error(4) --> for end of VUser on error
No comments:
Post a Comment