Wednesday, June 22, 2016

Load Runner : How to perform multiple (group) co-relation in Load Runner

Hi All,

Below is the description of how to perform multiple (group) co-relation in Load Runner :

Eg: 


you wants to co-relate product_id and osCsid both in the above url

Solution:

Function available in load runner : web_reg_save_param_regexp


you can create your own expression

Expression will be :

web_reg_save_param_regexp(
"ParamName=product_id_os",
"RegExp=products_id=([A-Z0-9a-z]+)\”\\]&osCsid=[A-Z0-9a-z\\\\+]\">",
"NotFound=warning",
"Group=0",
"Ordinal=1",
SEARCH_FILTERS,
               "Scope=Body",
LAST);

Used Expression :



Define Variable and Response :

1) Parameter name_1 for 1st value (Eg: if parameter name is product_id_os than we will define like product_id_os_1)
2) Parameter name_2 for 2nd value (Eg: if parameter name is product_id_os than we will define like product_id_os_2)





In- case of query/concern, do let us know.