请问为什么loadrunner在URL链接中参数化会报错?
脚本如下:Action()
{
web_set_max_html_param_len("1024");
web_reg_save_param("JSESSIONID",
"LB=JSESSIONID=",
"RB=;",
"ORD=1",
LAST);
web_add_cookie("JSESSIONID={JSESSIONID}; DOMAIN=as2.anbwf.com");
web_reg_save_param("code",
"LB=code=",
"RB=&state=",
"ORD=1",
LAST);
web_url("list",
"URL=http://as2.anbwf.com/bsfwx/cookedgoods/list?code={code}&state=STATE",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTTP",
LAST);
return 0;
}
页面是在微信公众号里面的,code是微信返回的动态参数,本想取关联,但是在这关联出错,求大神解析。
报错信息如下:
Action.c(4): Registering web_reg_save_param was successful
Action.c(10): Warning: The string 'JSESSIONID' with parameter delimiters is not a parameter.
Action.c(10): web_add_cookie was successful
Action.c(12): Registering web_reg_save_param was successful
Action.c(18): Warning: The string 'code' with parameter delimiters is not a parameter.
。。。。。。。。。
Action.c(18): Error -26377: No match found for the requested parameter "code". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
Action.c(18): Notify: Saving Parameter "code = ".
Action.c(18): web_url("list") highest severity level was "ERROR", 23502 body bytes, 245 header bytes, 29 chunking overhead bytes
Ending action Action.
是不是左右边界取错了,检查下 关联函数的下一个URL才会得到这个参数,但是你的下一条语句竟然要调用这个参数,肯定会报错啦,看看你是不是掉了一个URL
页:
[1]