|
3#
楼主 |
发表于 2011-12-21 17:43:10
|
只看该作者
Action()
{
int i=1;
int j=1;
// web_add_cookie("USERRECENTLYOPENCASEINFOdg01=_299_166_4_67_69; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOlj1=_107_205_157_159_126_104_87_86_76; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOdg02=_4; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOlj4=_202_208; DOMAIN=129.168.200.80");
//
// web_add_cookie("USERRECENTLYOPENCASEINFOlj2=_107_254; DOMAIN=129.168.200.80");
web_url("omm_spc",
"URL=http://129.168.200.80/omm_spc",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_url("default.go",
"URL=http://129.168.200.80/omm_spc/default.go?timestamp=1324287170557",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_reg_save_param("Session",
"LB=JSESSIONID=",
"RB=; Path=/omm_spc",
"Ord=1",
"Search=All",
LAST);
lr_start_transaction("登录");
web_submit_form("InterceptLogin.do",
"Snapshot=t3.inf",
ITEMDATA,
"Name=j_username", "Value={username}", ENDITEM,
"Name=j_password", "Value=12345678", ENDITEM,
"Name=_spring_security_remember_me", "Value=<OFF>", ENDITEM,
LAST);
lr_end_transaction("登录", LR_AUTO);
lr_output_message ("session = %s",lr_eval_string ("{Session}"));
lr_think_time (2);
for (i=1;i<=20;i++) {
for (j=1;j<=10;j++) {
lr_start_transaction("上传");
web_submit_data("fileUpload.go;jsessionid={Session}",
"Action=http://129.168.200.80/omm_spc/casefile/fileUpload.go;jsessionid={Session}",
// "Action=http://129.168.200.80/omm_spc/flow/getAllOperationalFlow.do",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
ITEMDATA,
"Name=Filename", "Value=1.mpeg", ENDITEM,
"Name=name", "Value={filename}.mpeg", ENDITEM,
"Name=modifyTime", "Value=1324287185854", ENDITEM,
"Name=caseId", "Value={caseid}", ENDITEM,
"Name=filedata","Value=E:\\1.mpeg","File=Yes",ENDITEM,
LAST);
lr_end_transaction("上传", LR_AUTO);
lr_think_time(8);
}//for j循环
}//for i循环
web_url("logout.do",
"URL=http://129.168.200.80/omm_spc/logout.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
return 0;
} |
|