|
我录制了一个登录的脚本,如果运行脚本时,不勾选启用检查点,该脚本可以通过,如果启用了检查点,脚本运行就报错,自己觉得是检查点除了问题,各位帮忙看下,代码如下:
Action()
{
lr_start_transaction("login");
web_add_cookie("rtime=1; DOMAIN=192.168.1.100");
web_add_cookie("ltime=1312332842312; DOMAIN=192.168.1.100");
web_add_cookie("cnzz_eid=92059788-1312248974-; DOMAIN=192.168.1.100");
web_add_cookie("cnzz_a1236275=0; DOMAIN=192.168.1.100");
web_add_cookie("sin1236275=; DOMAIN=192.168.1.100");
web_url("jdcjsy_sxWeb20",
"URL=http://192.168.1.100/jdcjsy_sxWeb20",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/jdcjsy_sxWeb20/images/bg1.gif", "Referer=http://192.168.1.100/jdcjsy_sxWeb20/", ENDITEM,
"URL=http://icon.cnzz.com/pic.gif", "Referer=http://192.168.1.100/jdcjsy_sxWeb20/", ENDITEM,
"URL=http://zs3.cnzz.com/stat.htm?id=1236275&r=&lg=zh-cn&ntime=0.08769500%201312332827&repeatip=1&rtime=1&cnzz_eid=92059788-1312248974-&showp=1440x900&st=122&sin=&res=0", "Referer=http://192.168.1.100/jdcjsy_sxWeb20/", ENDITEM,
"URL=http://im.bizapp.qq.com:8000/middle.jpg", "Referer=http://192.168.1.100/jdcjsy_sxWeb20/", ENDITEM,
"URL=http://im.bizapp.qq.com:8000/bg_1.gif", "Referer=http://192.168.1.100/jdcjsy_sxWeb20/", ENDITEM,
"URL=http://im.bizapp.qq.com:8000/face.jpg", "Referer=http://192.168.1.100/jdcjsy_sxWeb20/", ENDITEM,
"URL=http://im.bizapp.qq.com:8000/btn_2.gif", "Referer=http://192.168.1.100/jdcjsy_sxWeb20/", ENDITEM,
LAST);
web_add_cookie("ltime=1312332965281; DOMAIN=192.168.1.100");
web_add_cookie("cnzz_a1236275=1; DOMAIN=192.168.1.100");
lr_think_time(10);
lr_rendezvous("login");
web_submit_form("pxjglogin.do;jsessionid=59D80F201E9678E280C68B132FE1B0AF",
"Snapshot=t2.inf",
ITEMDATA,
"Name=yhid", "Value={username}", ENDITEM,
"Name=yhmm", "Value=123", ENDITEM,
"Name=yzm", "Value=4353", ENDITEM,
"Name=submit.x", "Value=20", ENDITEM,
"Name=submit.y", "Value=7", ENDITEM,
LAST);
web_find("web_find",
"What=已登陆",
LAST);
lr_end_transaction("login", LR_AUTO);
return 0;
} |
|