web_reg_save_param
web_reg_save_param is THE most important function when you are working with LoadRunner. It is used for correlation.web_req_save_param(“c_sessionid”,“NOTFOUND=ERROR”,”LB=Session”,”RB=}”,“ORD=1”,LAST);
web_set_max_html_param_len
To retrieve a string longer than 256 characters, use web_set_max_html_param_len to increase the maximum valid length.
web_set_max_html_param_len("1024");
web_custom_request
Allows you to create a custom HTTP request with any method supported by HTTP. We usually use it for web service scripting and method could be used from Step Toolbox in View Menu in Menu bar of Load Runner. It includes End point, Method (GET/POST), Body (Request payload) etc.
web_global_verification
web_global_verification("Text=Exception","Fail=Found","ID=MyAPP",LAST);
In this example if the string Exception is found, the script execution stops.
web_add_auto_header:
web_add_auto_header function is used to add header to all
the consecutive HTTP requests. It happens that you need to pass the log on
session id in all the subsequent HTTP request and this can be done with this
function,
Syntax : web_add_auto_header( const char *Header, const char
*Content );
Example :
web_add_auto_header("Authorization",lr_eval_string("{c_token}"));
web_add_auto_header("pwd",
"northanger1803");