TA的每日心情 | 开心 2014-10-24 09:36 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
基于smartupload的文件上传脚本实现:
Action()
{
web_url("uploadDemo02.html",
"URL=http://localhost:8080/Demo/upload/uploadDemo02.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
lr_think_time(12);
web_submit_data("smartupload01.jsp",
"Action=http://localhost:8080/Demo/upload/smartupload01.jsp",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://localhost:8080/Demo/upload/uploadDemo02.html",
"Snapshot=t2.inf",
"Mode=HTTP",
ITEMDATA,
"Name=pic", "Value=C:\\Documents and Settings\\administrator\\桌面\\build.xml", "File=Yes", ENDITEM,
LAST);
return 0;
} |
|