What is web_reg_save_param?

Please Like Us!!!

LoadRunner Interview Questions

Q: What is web_reg_save_param?
A: web_reg_save_param is used for correlation in vugen web protocol scripts. This function registers a request to retrieve dynamic information from the downloaded page, and save it to a parameter.

Syntax:
int web_reg_save_param( const char *ParamName, List of Attributes, LAST );

Example:
1) web_reg_save_param(“param”,”LB=Left Boundary”,”RB=Right Boundary”, LAST);
In the above example, web_reg_save_param would search for text between ‘Left Boundary’ and ‘Right Boundary’ and store it in parameter ‘param’.

2) web_reg_save_param(“param”,”LB=Left Boundary”,”RB=Right Boundary”,”ORD=ALL”,LAST);
In the above example, web_reg_save_param would search for text between ‘Left Boundary’ and ‘Right Boundary’ and store all the matches in parameter ‘param’. ‘param_1’ would contain the first match, ‘param_2’ would contain the second match and so on. ‘param_count’ would return the number of matches.

Reviews & Comments

Enjoy!