Hello,
A correlation function was working in my Vugen but not on LoadRunner Cloud.
To test it further I wrote several correlation functions targeting the same value:
web_reg_save_param_regexp(
"ParamName=c_affinity",
"RegExp=set-cookie: affinity=\"((.|\\\n)*?)\"",
"Group=1",
SEARCH_FILTERS,
"Scope=HEADERS",
"RequestUrl=www.myurl.com/folder/file,
LAST);
web_reg_save_param_regexp(
"ParamName=c_affinity2",
"RegExp=set-cookie: affinity=\"([^\"]*)\"",
"Group=1",
SEARCH_FILTERS,
"Scope=HEADERS",
"RequestUrl=www.myurl.com/folder/file",
LAST);
web_reg_save_param_regexp(
"ParamName=c_affinity3",
"RegExp=set-cookie: affinity=\"([^\"]*?)\"",
"Group=1",
SEARCH_FILTERS,
"Scope=HEADERS",
"RequestUrl=www.myurl.com/folder/file",
LAST);
web_reg_save_param_ex(
"ParamName=c_affinity_lbrb_ex",
"LB=set-cookie: affinity=\"",
"RB=\";",
SEARCH_FILTERS,
"Scope=HEADERS",
"RequestUrl=www.myurl.com/folder/file,
LAST);
And here are the results:
Action.c(56): Notify: Saving Parameter "c_affinity = 84c8a1a297b382f0".
Action.c(56): Notify: Saving Parameter "c_affinity2 = 84c8a1a297b382f0".
Action.c(56): Notify: Saving Parameter "c_affinity3 = 84c8a1a297b382f0".
Action.c(56): Notify: Saving Parameter "c_affinity_lbrb_ex = 84c8a1a297b382f0".
In LoadRunner Cloud (1 virtual user; 5 minutes test at 15 seconds iteration delay), I checked the logs and the value does exist:
Action.c(56): Set-Cookie: affinity="ff6e4b1d16580de0"; Path=/; HttpOnly\r\n
But cannot be found:
Action.c(56): Continuing after Error -35049: No match found for the requested parameter "c_affinity". Check whether the requested regular expression exists in the response data [MsgId: MERR-35049]
Action.c(56): Continuing after Error -35049: No match found for the requested parameter "c_affinity2". Check whether the requested regular expression exists in the response data [MsgId: MERR-35049]
Action.c(56): Continuing after Error -35049: No match found for the requested parameter "c_affinity3". Check whether the requested regular expression exists in the response data [MsgId: MERR-35049]
Action.c(56): Continuing after Error -35061: No match found for the requested parameter "c_affinity_lbrb_ex". Either the specified boundaries were not found in the response or the matched text is longer than current max html parameter size of 10000 bytes. The total length of the response is 1977 bytes. You can use "web_set_max_html_param_len" to increase the max parameter size. [MsgId: MERR-35061]
I would like to ask for ideas on where to look or if anyone knows what the underlying problem for this is.
Regards,
Leif
Vugen version: