|
脚本如下:
Action()
{
web_submit_data("login",
"Action=http://192.168.1.25/dm_app/v1.3/auth/login",
"Method=POST",
"RecContentType=application/json",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
ITEMDATA,
"Name=pwd", "Value=4c0c6e0365c72e0e607ea537ad98380b9f177b300a966e395f55918d487e132f", ENDITEM,
"Name=phone", "Value=17011111111", ENDITEM,
"Name=clientName", "Value=Meizu-meizu_m1note", ENDITEM,
"Name=clientNet", "Value=wifi", ENDITEM,
"Name=macAddress", "Value=38:bc:1a:44:fc:b1", ENDITEM,
"Name=clientOS", "Value=4.4.4", ENDITEM,
"Name=version", "Value=2.1.0.0.1000", ENDITEM,
"Name=userType", "Value=2", ENDITEM,
EXTRARES,
"Url=/dm_app/v1.0/config/getAdvertDate/2", "Referer=", ENDITEM,
"Url=/dm_app/v1.0//config/getIndexDate/2", "Referer=", ENDITEM,
"Url=/dm_app/v1.0/config/rtoken", "Referer=", ENDITEM,
"Url=http://img03.yw01.com/201601/19/cb267e35bf904d1bb642176e66bf3ab2.png", "Referer=", ENDITEM,
"Url=http://img03.yw01.com/201602/01/c9c6b506655547cfb2837618bd57ed72.jpg", "Referer=", ENDITEM,
"Url=/dm_app/v1.0/order/getOrderCount", "Referer=", ENDITEM,
LAST);
web_submit_data("check_app_update",
"Action=http://au.umeng.com/api/check_app_update",
"Method=POST",
"RecContentType=application/json",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=content", "Value={\"delta\":true,\"package\":\"com.qtz.pplive\",\"appkey\":\"561ce04167e58e286c001b8c\",\"sdk_version\":\"2.6.0.1.20150312\",\"type\":\"update\",\"channel\":\"1000\",\"old_md5\":\"be0768bf9ca8a4db33ec8e81fcdf1d29\",\"proto_ver\":\"1.4\",\"idmd5\":\"eb7bc57ce28dd4c431ed395ffd35a88\",\"version_code\":\"210\"}", ENDITEM,
EXTRARES,
"Url=http://img03.yw01.com/201601/19/cb267e35bf904d1bb642176e66bf3ab2.png", "Referer=", ENDITEM,
"Url=http://img03.yw01.com/201602/01/c9c6b506655547cfb2837618bd57ed72.jpg", "Referer=", ENDITEM,
"Url=http://img03.yw01.com/201602/01/9294c0bfd4284a1285fc78fafd113f60.jpg", "Referer=", ENDITEM,
"Url=http://192.168.1.25/dm_app/v1.0/auth/logout", "Referer=", ENDITEM,
LAST);
web_submit_data("check_app_update_2",
"Action=http://au.umeng.com/api/check_app_update",
"Method=POST",
"RecContentType=application/json",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=content", "Value={\"delta\":true,\"package\":\"com.qtz.pplive\",\"appkey\":\"561ce04167e58e286c001b8c\",\"sdk_version\":\"2.6.0.1.20150312\",\"type\":\"update\",\"channel\":\"1000\",\"old_md5\":\"be0768bf9ca8a4db33ec8e81fcdf1d29\",\"proto_ver\":\"1.4\",\"idmd5\":\"eb7bc57ce28dd4c431ed395ffd35a88\",\"version_code\":\"210\"}", ENDITEM,
LAST);
return 0;
}
错误如下:
虚拟用户脚本已从 : 2016-03-01 13:12:34 启动
正在开始操作 vuser_init。
正在结束操作 vuser_init。
正在运行 Vuser...
正在开始迭代 1。
正在开始操作 Action。
Action.c(4): Downloading resource "http://192.168.1.25/dm_app/v1.0/config/getAdvertDate/2" (specified by argument number 34) [MsgId: MMSG-26577]
Action.c(4): Downloading resource "http://192.168.1.25/dm_app/v1.0//config/getIndexDate/2" (specified by argument number 37) [MsgId: MMSG-26577]
Action.c(4): Downloading resource "http://192.168.1.25/dm_app/v1.0/config/rtoken" (specified by argument number 40) [MsgId: MMSG-26577]
Action.c(4): Downloading resource "http://img03.yw01.com/201601/19/cb267e35bf904d1bb642176e66bf3ab2.png" (specified by argument number 43) [MsgId: MMSG-26577]
Action.c(4): Downloading resource "http://img03.yw01.com/201602/01/c9c6b506655547cfb2837618bd57ed72.jpg" (specified by argument number 46) [MsgId: MMSG-26577]
Action.c(4): Downloading resource "http://192.168.1.25/dm_app/v1.0/order/getOrderCount" (specified by argument number 49) [MsgId: MMSG-26577]
Action.c(4): 警告 -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.1.25/dm_app/v1.0/config/rtoken" [MsgId: MWAR-26612]
Action.c(4): 警告 -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.1.25/dm_app/v1.0/order/getOrderCount" [MsgId: MWAR-26612]
Action.c(4): web_submit_data("login") 最高严重级别为“warning”,234421 个正文字节,1577 个标头字节 [MsgId: MMSG-26388]
Action.c(29): Resource "http://img03.yw01.com/201601/19/cb267e35bf904d1bb642176e66bf3ab2.png" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(29): Resource "http://img03.yw01.com/201602/01/c9c6b506655547cfb2837618bd57ed72.jpg" is in the cache already and will not be downloaded again [MsgId: MMSG-26655]
Action.c(29): Downloading resource "http://img03.yw01.com/201602/01/9294c0bfd4284a1285fc78fafd113f60.jpg" (specified by argument number 19) [MsgId: MMSG-26577]
Action.c(29): Downloading resource "http://192.168.1.25/dm_app/v1.0/auth/logout" (specified by argument number 22) [MsgId: MMSG-26577]
Action.c(29): 警告 -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.1.25/dm_app/v1.0/auth/logout" [MsgId: MWAR-26612]
Action.c(29): web_submit_data("check_app_update") 最高严重级别为“warning”,152551 个正文字节,664 个标头字节 [MsgId: MMSG-26388]
Action.c(45): web_submit_data("check_app_update_2") 已成功,15 个正文字节,158 个标头字节 [MsgId: MMSG-26386]
正在结束操作 Action。
正在结束迭代 1。
正在结束 Vuser...
正在开始操作 vuser_end。
正在结束操作 vuser_end。
Vuser 已终止。 |
|