I've just started working with Loadrunner and I wanted to extract some data from a response.I used the web_reg_save_param_regexp() function to extract some data but would get the error -
Error -35049: No match found for the requested parameter "UserDetails". Check whether the requested regular expression exists in the response data [MsgId: MERR-35049]
This is just the part of the response data that i need to be extracted.
{"name":"Alice Duval","id":"59"},{"name":"Amadi Aswad","id":"73"},{"name":"Andrew Daley","id":"50"},{"name":"Andrew Keller","id":"89"},
The regular expression I'm using is, {\"name\":\"(\w+\s+\w+)\"\,\"id\":\"(\d+)\"} This expression works,I think its the usage thats causing the problem.
web_reg_save_param_regexp("ParamName=UserDetails",
"RegExp=\{\"name\"\:\"(\w+\s+\w+)\"\,\"id\"\:\"(\d+)\"\}",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/onboarding/viewTaskTypes*",
"GROUP=1",
LAST);
web_url("viewTaskTypes", "URL=http://peguser.trials621.orangehrmlive.com/onboarding/viewTaskTypes",
"Resource=0",
"RecContentType=text/html", "Referer=http://peguser.trials621.orangehrmlive.com/onboarding/viewTaskTypes",
"Snapshot=t176.inf",
"Mode=HTTP",
LAST);