LR12手动关联 错误 -26377
提示:找不到所请求参数“UserSession”的匹配项。请检查响应数据中是否存在请求的边界。此外,如果要保存的数据超过 256 字节,请使用 web_set_max_html_param_len 增加参数大小哪路大神知道怎么修改,附上代码
Action()
{
web_url("index.htm",
"URL=http://127.0.0.1:1080/WebTours/index.htm",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(16);
//<input type="hidden" name="userSession" value="125782.779505873ztzQQfVpHcAiDDDDDiiVQpHVADcf"/>
web_reg_save_param("UserSession",
"LB=\"userSession\" value=\"",
"RB=\"/>",
LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/cgi-bin/login.pl",
"Method=POST",
"TargetFrame=body",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/cgi-bin/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={UserSession}", ENDITEM,
"Name=username", "Value=sh1", ENDITEM,
"Name=password", "Value=1", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=67", ENDITEM,
"Name=login.y", "Value=8", ENDITEM,
LAST);
lr_think_time(4);
web_url("SignOff Button",
"URL=http://127.0.0.1:1080/cgi-bin/welcome.pl?signOff=1",
"TargetFrame=body",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/cgi-bin/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
return 0;
} web_reg_save_param 前加上 web_set_max_html_param_len("9999");
已经告诉你字节长度超了,就强制加字节呀,我一般就设成9999,一定够用 嗨,有人吗
页:
[1]