速度救命啊
我的脚本有一项是需要填写两次秘密的 但这个秘密是动态的 每次算出来都是不同 我录制第一次的密码能成功通过 但第二次的动态密码则是错误 求大神赐教这是我录制的脚本Action()
{
lr_think_time(9);
web_url("ccb.jsp",
"URL=http://192.168.1.127:8080/Elock/ccb.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
web_image_check("web_image_check",
"Src=queren.png",
LAST);
web_submit_data("checkUser.action",
"Action=http://192.168.1.127:8080/Elock/checkUser.action",
"Method=POST",
"Referer=http://192.168.1.127:8080/Elock/ccb.jsp",
"Snapshot=t11.inf",
"Mode=HTML",
ITEMDATA,
"Name=userName", "Value=000000", ENDITEM,
"Name=userPwd", "Value=000000", ENDITEM,
LAST);
web_custom_request("firstCheck.action",
"URL=http://192.168.1.127:8080/Elock/firstCheck.action",
"Method=POST",
"Resource=1",
"Referer=http://192.168.1.127:8080/Elock/ccb.jsp",
"Snapshot=t12.inf",
"EncType=",
LAST);
lr_think_time(8);
web_submit_data("getFirstCode.action",
"Action=http://192.168.1.127:8080/Elock/getFirstCode.action",
"Method=POST",
"Referer=http://192.168.1.127:8080/Elock/ccb.jsp",
"Snapshot=t13.inf",
"Mode=HTML",
ITEMDATA,
"Name=atmNo", "Value=1", ENDITEM,
"Name=lockMan", "Value=BeiJing.JinChu", ENDITEM,
"Name=lockId", "Value=22222222", ENDITEM,
"Name=shutLockcode", "Value=49716799", ENDITEM,
LAST);
lr_think_time(10);
web_submit_data("checkUser.action_2",
"Action=http://192.168.1.127:8080/Elock/checkUser.action",
"Method=POST",
"Referer=http://192.168.1.127:8080/Elock/ccb.jsp",
"Snapshot=t14.inf",
"Mode=HTML",
ITEMDATA,
"Name=userName", "Value=111111", ENDITEM,
"Name=userPwd", "Value=111111", ENDITEM,
LAST);
web_submit_data("getSecondCode.action",
"Action=http://192.168.1.127:8080/Elock/getSecondCode.action",
"Method=POST",
"Referer=http://192.168.1.127:8080/Elock/ccb.jsp",
"Snapshot=t15.inf",
"Mode=HTML",
ITEMDATA,
"Name=userName", "Value=111111", ENDITEM,
"Name=userPwd", "Value=111111", ENDITEM,
"Name=atmNo", "Value=1", ENDITEM,
"Name=lockId", "Value=22222222", ENDITEM,
"Name=lockMan", "Value=BeiJing.JinChu", ENDITEM,
"Name=shutLockcode", "Value=49716799", ENDITEM,
"Name=unLockIdentInfo", "Value=99039615", ENDITEM,
LAST);
lr_think_time(10);
web_custom_request("getRecivedShutLockCode.action",
"URL=http://192.168.1.127:8080/Elock/getRecivedShutLockCode.action",
"Method=POST",
"Resource=1",
"Referer=http://192.168.1.127:8080/Elock/ccb.jsp",
"Snapshot=t16.inf",
"EncType=",
LAST);
return 0;
}
脚本正常啊,说一下你的业务流程,两次密码分别是怎么回事,两次密码有什么规律 要么参数化,要么做关联 如果有一个动态密码的话,可能会产生动态的session ID ,因此回放的时候总是会报错,你需要对你的密码字段做一个关联,也许能够解决你的问题。
页:
[1]