51Testing软件测试论坛

标题: hi!大家好。我这里录制了一段app脚本,结果报错了。大家帮我瞅瞅咋回事呢! [打印本页]

作者: 18500725813    时间: 2015-12-14 14:53
标题: 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          [MsgId: MMSG-26000]
Starting action Action.
Action.c(4): web_add_cookie started          [MsgId: MMSG-26355]
Action.c(4): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(6): web_add_cookie started          [MsgId: MMSG-26355]
Action.c(6): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(8): web_add_cookie started          [MsgId: MMSG-26355]
Action.c(8): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(10): web_add_cookie started          [MsgId: MMSG-26355]
Action.c(10): web_add_cookie was successful          [MsgId: MMSG-26392]
Action.c(12): web_submit_data("sur") started          [MsgId: MMSG-26355]
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 [No such file or directory]. Using an empty file          [MsgId: MERR-26488]
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)          [MsgId: MMSG-27654]
Action.c(12): web_submit_data("sur") highest severity level was "ERROR", 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
作者: fhhh_eyou    时间: 2015-12-14 19:02
1.设置变量值信息:username=18500725813; DOMAIN=123.56.43.124"
2.设置相对路径:URL=http://123.56.43.124:::No such file or directory


作者: 18500725813    时间: 2015-12-26 15:38
没看太懂啊。能说的详细一些吗?
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 [No such file or directory]. Using an empty file          [MsgId: MERR-26488]

就是上面值的问题,找不到那个stm_p。关键是我没有要上传的东西。没有要放文件夹的stm_p
作者: 18500725813    时间: 2015-12-26 15:39

        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 [No such file or directory]. Using an empty file          [MsgId: MERR-26488]
作者: 18500725813    时间: 2015-12-26 15:39
我没看太懂。麻烦详细点。
作者: 18500725813    时间: 2015-12-26 15:40
麻烦说清楚点。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2