hi!大家好。我这里录制了一段app脚本,结果报错了。大家帮我瞅瞅咋回事呢!
Action(){
web_add_cookie("cna=2yLtDlTtbCYCAW5g4A2AfOQd; DOMAIN=adash.m.taobao.com");
web_add_cookie("isg=E51B608E2746BDDD60AEE9E872A424BE; DOMAIN=adash.m.taobao.com");
web_add_cookie("l=Are3W4dKW7Hl-H8C-ZQV0OokR7ABfIve; DOMAIN=adash.m.taobao.com");
web_add_cookie("t=4b2864b9577a76f289171c15cebd93bd; DOMAIN=adash.m.taobao.com");
web_submit_data("sur",
"Action=http://adash.m.taobao.com/rest/sur?ak=23232116&av=11&c=0&v=3.0&s=25a5bc8398ad46e6923d576a3a3eaeb25b6b9a18&d=VlVz%2FKitYDwDAIDqMLXqflTC&sv=4.3.1&p=m&t=1450075721&u=&is=1",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=application/json",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
ITEMDATA,
"Name=stm_p", "Value=stm_p", "File=Yes", ENDITEM,
LAST);
web_add_cookie("username=18500725813; DOMAIN=123.56.43.124");
web_url("RegisterAndLoginAction_loginByPhone.action",
"URL=http://123.56.43.124/dressup/RegisterAndLoginAction_loginByPhone.action?username=18500725813&password=a12345",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_think_time(5);
web_submit_data("PersonalAction_toPersonalPage.action",
"Action=http://123.56.43.124/dressup/PersonalAction_toPersonalPage.action",
"Method=POST",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=id", "Value=4719", ENDITEM,
"Name=local_user_id", "Value=4719", ENDITEM,
EXTRARES,
"Url=col_picture/1450071183844.jpg", "Referer=", ENDITEM,
LAST);
return 0;
}
Virtual User Script started at : 2015/12/14 14:49:16
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Maximum number of concurrent connections per server: 2
Starting action Action.
Action.c(4): web_add_cookie started
Action.c(4): web_add_cookie was successful
Action.c(6): web_add_cookie started
Action.c(6): web_add_cookie was successful
Action.c(8): web_add_cookie started
Action.c(8): web_add_cookie was successful
Action.c(10): web_add_cookie started
Action.c(10): web_add_cookie was successful
Action.c(12): web_submit_data("sur") started
Action.c(12): Error -26488: Could not obtain information about submitted file "D:\Users\huaxi\Documents\VuGen\Scripts\MobileHTTP1\stm_p": _stat32 rc=-1, errno=2 . Using an empty file
Action.c(12): Aborting pending download of URL="http://adash.m.taobao.com/rest/sur?ak=23232116&av=11&c=0&v=3.0&s=25a5bc8398ad46e6923d576a3a3eaeb25b6b9a18&d=VlVz%2FKitYDwDAIDqMLXqflTC&sv=4.3.1&p=m&t=1450075721&u=&is=1" (RelFrameId=1, Internal ID=1)
Action.c(12): web_submit_data("sur") highest severity level was "ERROR", 0 body bytes, 0 header bytes
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated. 1.设置变量值信息:username=18500725813; DOMAIN=123.56.43.124"
2.设置相对路径:URL=http://123.56.43.124:::No such file or directory
没看太懂啊。能说的详细一些吗?
web_submit_data("sur",
"Action=http://adash.m.taobao.com/rest/sur?ak=23232116&av=1.1.2&c=0&v=3.0&s=05f94a2039e39af23d62cef4d5d30497043c7114&d=VluksiH%2ByWcDAIL4WHgtraoJ&sv=4.3.9&p=a&t=1451113953291&u=&is=1",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=application/json",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
ITEMDATA,
"Name=stm_p", "Value=stm_p", "File=Yes", ENDITEM,
LAST);
web_submit_data("sur",
Action.c(4): Error -26488: Could not obtain information about submitted file "E:\项目区\有型20151215\android\脚本\denglu_tuichu_demo1\stm_p": _stat32 rc=-1, errno=2 . Using an empty file
就是上面值的问题,找不到那个stm_p。关键是我没有要上传的东西。没有要放文件夹的stm_p
web_submit_data("sur",
"Action=http://adash.m.taobao.com/rest/sur?ak=23232116&av=1.1.2&c=0&v=3.0&s=05f94a2039e39af23d62cef4d5d30497043c7114&d=VluksiH%2ByWcDAIL4WHgtraoJ&sv=4.3.9&p=a&t=1451113953291&u=&is=1",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=application/json",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
ITEMDATA,
"Name=stm_p", "Value=stm_p", "File=Yes", ENDITEM,
LAST);
Action.c(4): Error -26488: Could not obtain information about submitted file "E:\项目区\有型20151215\android\脚本\denglu_tuichu_demo1\stm_p": _stat32 rc=-1, errno=2 . Using an empty file 我没看太懂。麻烦详细点。 麻烦说清楚点。
页:
[1]