TA的每日心情 | 开心 2015-10-23 13:46 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
#include "as_web.h"
Action()
{
web_set_max_html_param_len("1024");
/*Registering parameter(s) from source task id 2
{JSESSIONID2} = "Cm8Ii2iWFyU015KdUFNu7g6I8Kg26ff1hHwzUeTJt3Qh2BoJE8wL!-1039242786"
*/
web_reg_save_param("JSESSIONID2",
"LB/IC=jsessionid=",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=body",
LAST);
web_submit_data("loginAction.do;jsessionid=Cm8Ii2iWFyU015KdUFNu7g6I8Kg26ff1hHwzUeTJt3Qh2BoJE8wL!-1039242786",
"Action=http://10.128.4.83:7001/gzweb/loginAction.do;jsessionid={JSESSIONID2}",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://10.128.4.83:7001/gzweb/index.jsp",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userId", "Value=1", ENDITEM,
"Name=password", "Value=1", ENDITEM,
LAST);
web_url("index.jsp",
"URL=http://10.128.4.83:7001/gzweb/index.jsp",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=img/images/login_06.jpg", ENDITEM,
"URL=img/images/login_08.jpg", ENDITEM,
"URL=img/images/login_bg.gif", ENDITEM,
"URL=img/images/%E5%88%86%E9%9A%94%E7%AC%A6.gif", ENDITEM,
LAST);
web_url("main_0.jsp",
"URL=http://10.128.4.83:7001/gzweb/inc/main_0.jsp",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"URL=../img/bottom_left.gif", "Referer=http://10.128.4.83:7001/gzweb/inc/body.jsp", ENDITEM,
"URL=../img/bottom_left_m.gif", "Referer=http://10.128.4.83:7001/gzweb/inc/body.jsp", ENDITEM,
"URL=../img/trees/root.gif", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/Tplus.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/foldericon.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/I.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/file.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/T.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/L.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/Lplus.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
"URL=../img/trees/blank.png", "Referer=http://10.128.4.83:7001/gzweb/inc/menu.jsp", ENDITEM,
LAST);
return 0;
}
上面是录制的登录的脚本,但在VU运行时报错,错误 -27190: 找不到请求的参数“JSESSIONID2”的匹配项。检查请求的边界是否存在于响应数据中。此外,如果要保存的数据超过 1024 个字节,请使用 web_set_max_html_param_len 增加参数大小 [MsgId: MERR-27190]
请问怎样处理,在线等!! |
|