|
本帖最后由 激流勇进 于 2014-12-27 17:59 编辑
脚本如下,用户注册,已使用参数化 ,脚本回放运行正常,数据成功进入到数据库,但使用械拟用户操作脚本,若不限制时间,脚本无限制运行,若限定运行时间,则到时间后直接停止,不知道为什么不显示成功
Action()
{
web_add_cookie("rememberMe=KichFaIIAz8+VvOX+vOKfkGwYUHsJhKdcjjh426VHYfcdzVL5AGY37Gh7/mtVs/RgI03mzrX1IyQ5f6XedhXQz5faP0X+cHxWqMhwvfhC9e0/1E7s/tJ9iXzG5w4VIjtGV+lp5G+E32q94sfLQAuiSrwc4IxlZDNVcrIMjb/nXmkfv0EE9izWM/Z/bw5ZSMwGYD+Zj/haHVwdFdErv63S7CqtFj5PfjZXQ+DlVABhOEUC8uoAI6hyd3xMgtIg882/x2xs1Y0quPRa6idY6YA9wXt20HYtb0cK+YCoNhjnrYRu9jLU89WNu/ufCrfiqgK/5Rb+Z/wZLBa8LYXaPXzgrlv80t3s7u5d4uRKr3ohOYSs+/h9mxPEj0JwZeBB0jnqSZhN+75h5IFvGln0yljjaGDh9OL2Dneuz7RAKooTvWuJfR2a4VjdRsa+ZexXT9yH5ph/"
"qWoVEvyq6OMdDIyzXy6tHEr0Yadk7XUPT8AHIXfDNZb4qk8h1v7Mh7r8XzvTJfKrmleuMz+jV5lVq+WQHQTd6LIlveypzQ3xbe5D834m/RkLFOjujO0Q4AFoG4w/hOlw9G5eZZJHofPCMIvwCXE22i5Y97IY9VmGC/6G1CFhuQ/pa6alWqYQsVJfZfVikggYKg5vj7wD2Cj1XKDHZ3FLnA9HpC9yWu0VUMqgWtcxQWncj/lYk+p4Ri8CGnzP8d34K2qxJ6GMBunPQP1jhKHa4LfXP4oCZZpV8icBWocW6ht1aH8Bv4YUaZNVqVxP0gvh4dfp0Rq4LUt3ndqgg==; DOMAIN=192.168.168.170");
web_url("192.168.168.170:8080",
"URL=http://192.168.168.170:8080/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t53.inf",
"Mode=HTML",
EXTRARES,
"Url=/resource/public/images/zhuye-img_01.gif", ENDITEM,
"Url=/resource/public/images/nav_pic.png", ENDITEM,
"Url=/resource/public/images/ggwsydl.png", ENDITEM,
"Url=/resource/public/images/111.png", ENDITEM,
"Url=/resource/public/images/zhuye-img_04.png", ENDITEM,
"Url=/resource/public/images/jianbian.png", ENDITEM,
"Url=/resource/public/images/dl.png", ENDITEM,
"Url=/resource/public/images/zc.png", ENDITEM,
"Url=/resource/public/images/zhuye-img_12.png", ENDITEM,
"Url=/resource/public/images/zhizuo-_01.png", ENDITEM,
LAST);
lr_think_time(34);
web_url("personalReg.jhtml",
"URL=http://192.168.168.170:8080/personalReg.jhtml",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t54.inf",
"Mode=HTML",
LAST);
lr_think_time(11);
lr_start_transaction("submit19");
web_submit_data("ajaxComValidReg.jhtml",
"Action=http://192.168.168.170:8080/ajaxComValidReg.jhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t55.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=password", "Value=", ENDITEM,
"Name=comfirmPwd", "Value=", ENDITEM,
"Name=trueName", "Value=", ENDITEM,
"Name=phoneNum", "Value=", ENDITEM,
"Name=email", "Value=", ENDITEM,
"Name=sex", "Value=woman", ENDITEM,
"Name=submit", "Value=nosubmit", ENDITEM,
LAST);
web_submit_data("ajaxComValidReg.jhtml_2",
"Action=http://192.168.168.170:8080/ajaxComValidReg.jhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t56.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=comfirmPwd", "Value=", ENDITEM,
"Name=trueName", "Value=", ENDITEM,
"Name=phoneNum", "Value=", ENDITEM,
"Name=email", "Value=", ENDITEM,
"Name=sex", "Value=woman", ENDITEM,
"Name=submit", "Value=nosubmit", ENDITEM,
LAST);
web_submit_data("ajaxComValidReg.jhtml_3",
"Action=http://192.168.168.170:8080/ajaxComValidReg.jhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t57.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=comfirmPwd", "Value=111111", ENDITEM,
"Name=trueName", "Value=", ENDITEM,
"Name=phoneNum", "Value=", ENDITEM,
"Name=email", "Value=", ENDITEM,
"Name=sex", "Value=woman", ENDITEM,
"Name=submit", "Value=nosubmit", ENDITEM,
LAST);
lr_think_time(12);
web_submit_data("ajaxComValidReg.jhtml_4",
"Action=http://192.168.168.170:8080/ajaxComValidReg.jhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t58.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=comfirmPwd", "Value=111111", ENDITEM,
"Name=trueName", "Value=方茴19", ENDITEM,
"Name=phoneNum", "Value=", ENDITEM,
"Name=email", "Value=", ENDITEM,
"Name=sex", "Value=woman", ENDITEM,
"Name=submit", "Value=nosubmit", ENDITEM,
LAST);
lr_think_time(22);
web_submit_data("ajaxComValidReg.jhtml_5",
"Action=http://192.168.168.170:8080/ajaxComValidReg.jhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t59.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=comfirmPwd", "Value=111111", ENDITEM,
"Name=trueName", "Value=方茴19", ENDITEM,
"Name=phoneNum", "Value=15872982589", ENDITEM,
"Name=email", "Value=", ENDITEM,
"Name=sex", "Value=woman", ENDITEM,
"Name=submit", "Value=nosubmit", ENDITEM,
LAST);
lr_think_time(9);
web_submit_data("ajaxComValidReg.jhtml_6",
"Action=http://192.168.168.170:8080/ajaxComValidReg.jhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t60.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=comfirmPwd", "Value=111111", ENDITEM,
"Name=trueName", "Value=方茴19", ENDITEM,
"Name=phoneNum", "Value=15872982589", ENDITEM,
"Name=email", "Value=", ENDITEM,
"Name=sex", "Value=woman", ENDITEM,
"Name=submit", "Value=nosubmit", ENDITEM,
LAST);
lr_think_time(9);
web_submit_data("ajaxComValidReg.jhtml_7",
"Action=http://192.168.168.170:8080/ajaxComValidReg.jhtml",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t61.inf",
"Mode=HTML",
"EncodeAtSign=YES",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=comfirmPwd", "Value=111111", ENDITEM,
"Name=trueName", "Value=方茴19", ENDITEM,
"Name=phoneNum", "Value=15872982589", ENDITEM,
"Name=email", "Value=123@123.com", ENDITEM,
"Name=sex", "Value=man", ENDITEM,
"Name=submit", "Value=submit", ENDITEM,
LAST);
lr_rendezvous("submitjhd19");
lr_end_transaction("submit19", LR_AUTO);
web_submit_data("192.168.168.170:8080_2",
"Action=http://192.168.168.170:8080/",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.168.170:8080/personalReg.jhtml",
"Snapshot=t62.inf",
"Mode=HTML",
ITEMDATA,
"Name=loginName", "Value={loginname19}", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=trueName", "Value=方茴19", ENDITEM,
"Name=idcard", "Value=", ENDITEM,
"Name=sex", "Value=man", ENDITEM,
EXTRARES,
"Url=/resource/public/images/tc.png", ENDITEM,
"Url=/resource/public/images/ggw-yhdlh.png", ENDITEM,
LAST);
return 0;
}
|
|