|
请问一下,如果做一个登录操作,把用户名参数化了,没有进行迭待,每个用户执行是Unique方式,不会重复。假如用Controller执行10个用户并发,只有7个通过了,我想在下图的ERROR中查看,怎么弄。下面是脚本,为了安全,把IP换成了“IP地址”
Action()
{
web_add_cookie("lybbsUserID=Ng==; DOMAIN=IP地址");
web_add_cookie("cbid=jfjgjmgidggkdldmeoqonuoqmojrktlufkhjkielgjekhlplrnmroupqkolnrqppdfigchcl; DOMAIN=IP地址");
web_url("IP地址",
"URL=http://IP地址/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("index.do",
"URL=http://IP地址/index.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/bg_01.gif", ENDITEM,
"Url=/images/alphacube/top-middle.gif", ENDITEM,
"Url=/images/alphacube/bottom-middle.gif", ENDITEM,
"Url=/images/alphacube/button-close-focus.gif", ENDITEM,
"Url=/images/alphacube/button-min-focus.gif", ENDITEM,
"Url=/images/alphacube/left-top.gif", ENDITEM,
"Url=/images/alphacube/frame-left.gif", ENDITEM,
"Url=/images/alphacube/right-top.gif", ENDITEM,
"Url=/images/alphacube/bottom-right-c.gif", ENDITEM,
"Url=/images/alphacube/bottom-left-c.gif", ENDITEM,
"Url=/images/alphacube/frame-right.gif", ENDITEM,
"Url=/images/top.swf", "Referer=", ENDITEM,
"Url=/images/home.swf?URL=/index.do", "Referer=", ENDITEM,
"Url=/images/data.swf?URL=/resource.do", "Referer=", ENDITEM,
"Url=/images/bbs.swf?URL=forum.jsp", "Referer=", ENDITEM,
"Url=/images/control.swf?URL=javascript:login_check('personal.do')", "Referer=", ENDITEM,
"Url=/images/muturlly.swf?URL=/hzly.do", "Referer=", ENDITEM,
"Url=/images/report.swf?URL=javascript:login_check('/servlet/ReportCenterServlet');", "Referer=", ENDITEM,
"Url=/images/manage.swf?URL=/admin/login.do", "Referer=", ENDITEM,
"Url=/images/body_01.gif", ENDITEM,
"Url=/js/System/Global.js", "Referer=http://IP地址/html/adrotate.htm", ENDITEM,
"Url=/js/System/Data/MzDataProvider.js", "Referer=http://IP地址/html/adrotate.htm", ENDITEM,
"Url=/images/adrotate/1.jpg", "Referer=http://IP地址/html/adrotate.htm", ENDITEM,
"Url=/images/adrotate/3.jpg", "Referer=http://IP地址/html/adrotate.htm", ENDITEM,
"Url=/images/adrotate/2.jpg", "Referer=http://IP地址/html/adrotate.htm", ENDITEM,
"Url=/images/bd6.gif", ENDITEM,
"Url=/images/body_08.gif", ENDITEM,
"Url=/images/body_10.gif", ENDITEM,
"Url=/images/bd3.gif", ENDITEM,
"Url=/images/loading.gif", ENDITEM,
LAST);
/*页面显示完毕
输入用户名和密码*/
/*进行集合
点击登录*/
lr_rendezvous("集合");
lr_start_transaction("登录");
web_submit_data("login.do",
"Action=http://IP地址/admin/login.do?user_name={name}&user_pass={paw}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://IP地址/index.do",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
LAST);
lr_end_transaction("登录",LR_AUTO);
/*登录成功
点击安全退出系统
*/
lr_error_message("李俊添加的:监控退出是否正常");
lr_think_time(4);
web_submit_data("logout.do",
"Action=http://IP地址/logout.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://IP地址/index.do",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
LAST);
/*关闭IE*/
return 0;
想知道可不可以用lr_error_message()或者lr_out_message()打印,但是那个name参数化在web_submit_data,更不知道如何才能取出里面的值,麻烦会的指导下,谢谢!
[ 本帖最后由 423799223 于 2007-5-31 12:19 编辑 ] |
|