|
2#
楼主 |
发表于 2005-11-29 09:44:06
|
只看该作者
单个用户回放报错如下:(同时弹出“当前安全设置禁止运行页中的ActiveX控件,因此,该页无法正常显示”)
Action.c(37): web_submit_data highest severity level was "ERROR", 75957 body bytes, 7176 header bytes, 56 chunking overhead bytes [MsgId: MMSG-27177]
Ending action Action.
Ending iteration 1.
因为脚本中存在动态信息jsessionid=C0314DE1FBED450F036691152FF5A5AE(每次都不一样),需要设置关联。
lr_think_time( 4 );
web_submit_data("Login.do;jsessionid=C0314DE1FBED450F036691152FF5A5AE",
"Action=http://192.168.1.203:8090/goa/admin/Login.do;jsessionid={JSESSIONID6}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024",
"Snapshot=t2.inf",
"Mode=HTML",
录制完脚本后自动设置关联后脚本如下:
Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 2
// {JSESSIONID6} = "C0314DE1FBED450F036691152FF5A5AE?action=logon"
// */
web_reg_save_param("JSESSIONID6",
"LB/IC=jsessionid=",
"RB/IC=\"",
"Ord=1",
"Search=body",
"RelFrameId=1",
LAST);
// [WCSPARAM WCSParam_Diff1 32 C0314DE1FBED450F036691152FF5A5AE] Parameter {WCSParam_Diff1} created by Correlation Studio
web_reg_save_param( "WCSParam_Diff1", "LB=Set-Cookie: JSESSIONID=", "RB=;", "Ord=1", "Search=Headers", "RelFrameId=1", LAST ); web_url("Login.do",
"URL=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../images/egip/login/login-i_r1_c4.gif", "Referer=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024", ENDITEM,
"Url=../images/egip/login/login-i_r2_c1.gif", "Referer=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024", ENDITEM,
"Url=../images/egip/login/login.swf", "Referer=", ENDITEM,
"Url=../images/egip/login/login_r4_c5.gif", "Referer=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024", ENDITEM,
"Url=../images/egip/login/login-i_r3_c4.gif", "Referer=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024", ENDITEM,
"Url=../images/egip/login/login-bu.gif", "Referer=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024", ENDITEM,
LAST);
lr_think_time( 4 );
web_submit_data("Login.do;jsessionid={WCSParam_Diff1}",
"Action=http://192.168.1.203:8090/goa/admin/Login.do;jsessionid={JSESSIONID6}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.203:8090/goa/admin/Login.do?action=welcome&screenXY=1024",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=password", "Value=123", ENDITEM,
"Name=user_pin", "Value=", ENDITEM,
"Name=sign_cert", "Value=", ENDITEM,
"Name=enc_cert", "Value=", ENDITEM,
"Name=userKeyID", "Value=", ENDITEM,
"Name=KeyType", "Value=", ENDITEM,
"Name=userId", "Value=8609", ENDITEM,
"Name=pinpassword", "Value=123", ENDITEM,
"Name=pinword", "Value=", ENDITEM,
"Name=screenXY", "Value=1024", ENDITEM,
EXTRARES,
"Url=../images/egip/images/bn.swf", "Referer=", ENDITEM,
"Url=../images/menu/bg_b.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/msgloadpage.jsp", ENDITEM,
LAST);
web_url("menudata.jsp",
"URL=http://192.168.1.203:8090/goa/egip/mainpage/menudata.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.203:8090/goa/egip/mainpage/main.do?action=toMainTop",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("cardcontent.do",
"URL=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=/goa/images/egip/images/bjtbl.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/main.do?action=toMainTop", ENDITEM,
LAST);
web_url("msgplan.jsp",
"URL=http://192.168.1.203:8090/goa/egip/mainpage/msgplan.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.203:8090/goa/egip/mainpage/msgloadpage.jsp",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=/goa/images/egip/main_bg.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
"Url=/goa/images/egip/mail_atth.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
"Url=/goa/images/deskpic_7.jpg", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
"Url=/goa/images/egip/images/td_bg.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
"Url=/goa/webui/calendar/menuarrow.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
LAST);
web_url("hiddenleft.do",
"URL=http://192.168.1.203:8090/goa/egip/mainpage/hiddenleft.do?rnd=1133227579464",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.203:8090/goa/egip/mainpage/main.do?action=toMainTop",
"Snapshot=t6.inf",
"Mode=HTML",
EXTRARES,
"Url=/goa/images/egip/images/td_bg.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
"Url=/goa/images/egip/images/bjtbl.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/main.do?action=toMainTop", ENDITEM,
"Url=/goa/images/deskpic_7.jpg", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
"Url=/goa/images/egip/main_bg.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
"Url=/goa/webui/calendar/menuarrow.gif", "Referer=http://192.168.1.203:8090/goa/egip/mainpage/cardcontent.do?cardmode=1&rnd=1133227567917", ENDITEM,
LAST);
lr_think_time( 1 );
web_url("Login.do_2",
"URL=http://192.168.1.203:8090/goa/admin/Login.do?action=logout2&menuClickCounter=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
return 0; |
|