|
2#
楼主 |
发表于 2011-11-24 16:44:01
|
只看该作者
代码如下:
web_url("login.do",
"URL=http://1.1.1.10/login.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
EXTRARES,
LAST);
/* Registering parameter(s) from source task id 23
// {OracleAppJSESSIONID3} = "1E3D8A4553DDB3BD96B54297DA494F7C"
// */
web_reg_save_param("OracleAppJSESSIONID3",
"LB/IC=JSESSIONID=",
"RB/IC=;",
"Ord=1",
"Search=headers",
LAST);
web_submit_form("j_spring_security_check",
ITEMDATA,
"Name=j_username", "Value={user}", ENDITEM,
"Name=j_password", "Value=123456", ENDITEM,
"Name=_spring_security_remember_me", "Value=<OFF>", ENDITEM,
LAST);
web_url("multiUpload.do",
// "URL=http://1.1.1.10/caseFile/multiUpload.do?sourceUuid=&caseId=345&departmentId=54",
"URL=http://1.1.1.10/caseFile/multiUpload.do?",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"Url=../js/lhgdialog/lhgdialog3.3.1/images/leftTop.png", "Referer=", ENDITEM,
"Url=../flash/MultiTrafficUploader.swf", "Referer=http://1.1.1.10/caseFile/multiUpload.do?sourceUuid=&caseId=&departmentId=54", ENDITEM,
LAST);
for(i=0;i<10;i++){
for (j=0;j<100;j++) {
web_submit_data("fileUpload.go",
"Action=http://1.1.1.10/caseFile/fileUpload.go;jsessionid={OracleAppJSESSIONID3}",
"Method=POST",
"RecContentType=text/html",
"Referer=",
"EncType=multipart/form-data",
"Mode=HTML",
ITEMDATA,
"name=Filename", "Value=123.mpeg",ENDITEM,
"name=illegalTimeStr","Value=08:00",ENDITEM,
"name=modifyTime","Value=1301021592000",ENDITEM,
"name=vehicleTypeCode","Value=灏忓瀷姹借溅鍙风墝",ENDITEM,
"name=name","Value=123.mpeg",ENDITEM,
"name=caseId","Value={caseid}",ENDITEM,
"name=filedata","Value=E:\\123.mpeg","File=Yes",ENDITEM,
LAST);
lr_output_message("caseid = %s", lr_eval_string("{caseid}"));
lr_think_time(5);
lr_output_message("temp = %s", lr_eval_string("{OracleAppJSESSIONID3}"));
}//for(j)
}//for(i)
web_url("logout.do",
"URL=http://1.1.1.10/logout.do?timeStamp=1322096817859",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t14.inf",
"Mode=HTML",
LAST); |
|