使用mobile-app协议录制android模拟器中的应用产生的脚本对服务器有压力吗?
这是登录脚本,是否能对服务器产生压力,与一般的web录制的效果一样?求高手看下:lr_start_transaction("登录");
web_custom_request("Login",
"URL=http://cbc.iuoooo.com//Jinher.AMP.CBC.SV.UserSV.svc/Login",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"EncType=application/json; charset=utf-8",
"Body={\"loginInfoDTO\":{\"IuAccount\":\"18500234050\",\"IuPassword\":\"111111\"}}",
LAST);
web_custom_request("GetMapBabyList",
"URL=http://track.iuoooo.com/Jinher.AMP.Track.BP.BabyQueryBP.svc/GetMapBabyList",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=application/json; charset=utf-8",
"Body={\"userId\":\"e906e949-f3fc-490f-abe6-3b3c08cce84d\"}",
LAST);
web_custom_request("GetRemind",
"URL=http://track.iuoooo.com/Jinher.AMP.Track.BP.RemindQueryBP.svc/GetRemind",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=application/json; charset=utf-8",
"Body={\"userId\":\"e906e949-f3fc-490f-abe6-3b3c08cce84d\"}",
LAST);
web_custom_request("GetSetting",
"URL=http://track.iuoooo.com/Jinher.AMP.Track.BP.UserSettingQueryBP.svc/GetSetting",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=application/json; charset=utf-8",
"Body={\"userId\":\"e906e949-f3fc-490f-abe6-3b3c08cce84d\"}",
LAST);
web_submit_data("v",
"Action=http://sdk.imap.baidu.com/sdk/v?qt=pe&mb=sdk&os=android&sv=1%2E3%2E3&im=000000000000000&resid=01&ver=1&screen=(480,800)&dpi=(240,240)&name=%E7%80%B9%E6%BF%8A%E7%A4%89%E9%8D%A6%E3%84%A5%E6%91%A2",
"Method=POST",
"RecContentType=application/octet-stream",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=k", "Value=m8jcrtG8ruiWodrdrujcndC8ntDfm8i5ouqYmufeoty9rJiYqZCXoq==632DC57416", ENDITEM,
EXTRARES,
"Url=http://client.map.baidu.com/?qt=rg&url=http%3A%2F%2Fwp%2Emap%2Ebaidu%2Ecom%2F%3Ftype%3Dm256H%26l%3D13%26c%3D1581%5F589%2C1581%5F588%2C1582%5F588%2C1582%5F589%2C1582%5F590%2C1581%5F590%2C1580%5F590%2C1580%5F589%2C1580%5F588%2C1580%5F587%2C1581%5F587%2C1582%5F587%26os%3Dandroid&rc=1", "Referer=", ENDITEM,
LAST);
web_custom_request("UserBindApp",
"URL=http://app.iuoooo.com/Jinher.AMP.App.BP.UserAppBP.svc/UserBindApp",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t6.inf",
"Mode=HTML",
"EncType=application/json; charset=utf-8",
"Body={\"appId\":\"17813700-ebc0-4edb-ba43-a10c588cb617\",\"userId\":\"e906e949-f3fc-490f-abe6-3b3c08cce84d\"}",
EXTRARES,
"Url=http://client.map.baidu.com/?qt=rg&url=http%3A%2F%2Fwp%2Emap%2Ebaidu%2Ecom%2F%3Ftype%3Dm256H%26l%3D13%26c%3D1581%5F589%2C1581%5F588%2C1582%5F588%2C1582%5F589%2C1582%5F590%2C1581%5F590%2C1580%5F590%2C1580%5F589%2C1580%5F588%2C1580%5F587%2C1581%5F587%2C1582%5F587%26os%3Dandroid&rc=1", "Referer=", ENDITEM,
LAST);
web_custom_request("IsAppPackageValidate",
"URL=http://cbc.iuoooo.com/Jinher.AMP.App.SV.AppManagerSV.svc/IsAppPackageValidate",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
"EncType=application/json; charset=utf-8",
"Body={\"accessToken\":\"319CAF515EE1437997794150B1C0569B\",\"appPackageId\":\"2045d187-5653-4fe6-ba63-3890294d9e93\",\"clientFinger\":\"3x0rOXs8zgY6gY09Wz9fFg\\u003d\\u003d\",\"refreshToken\":\"68524CDD669645948A5A188E6402A9BB\"}",
EXTRARES,
"Url=http://client.map.baidu.com/?qt=rg&url=http%3A%2F%2Fwp%2Emap%2Ebaidu%2Ecom%2F%3Ftype%3Dm256H%26l%3D13%26c%3D1581%5F589%2C1581%5F588%2C1582%5F588%2C1582%5F589%2C1582%5F590%2C1581%5F590%2C1580%5F590%2C1580%5F589%2C1580%5F588%2C1580%5F587%2C1581%5F587%2C1582%5F587%26os%3Dandroid&rc=1", "Referer=", ENDITEM,
LAST);
lr_end_transaction("登录",LR_AUTO);
lr_think_time(51);
web_custom_request("GetPublicShareTrackList",
"URL=http://track.iuoooo.com/Jinher.AMP.Track.BP.ShareTrackQueryBP.svc/GetPublicShareTrackList",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=",
"Snapshot=t8.inf",
"Mode=HTML",
"EncType=application/json; charset=utf-8",
"Body={\"userId\":\"e906e949-f3fc-490f-abe6-3b3c08cce84d\",\"shareTime\":\"/Date(1370767694229+0800)/\",\"pageSize\":10}",
LAST);
return 0; 自动顶起来。求教大神看看啊~ 求指导啊~ 当然有压力 回复 4# 云层
求问云老大,回放时,报这个错误。。怎么破啊。。
错误 -26631;
对于“http://track.iuoooo.com/jinher.AMP.Track.BP.BabyQueryBP.svc/”
GetMapBabyList".HTTP状态代码=400(Bad Request)
是什么问题啊? android模拟器 是自己搭建的 還是公司專用的呢 回复 6# goopy
自己搭建的 顶一下,~ 我的lr怎么没有mobile-app协议,怎么弄出来的? 没找到有这个协议呼,版本是多少的。
别外,你的脚本用最后的一个就可以进行压力业务测试了吧。个人觉得。 要打11的补丁,版本号11.04 回复 1# yao2631488
请说说你是怎么录制的脚本? 顶上,求解 有压力的,我们现在都在用Mobile协议 高了几个月的Mobile协议的.... LR11.52版本已经支持录制手机客户端的功能了, 我感觉产生的压力就是对服务器的,客户端的压力目前还是不好解决。 马克一下啊、、、哈哈 这个录制登录成功的功能,需要关联吗? 请问高手们帮我解决一下,我用LR11安装完插件后,使用Mobile App(HTTP/HTML)协议,怎么设置代理方式录制app脚本,模拟器太卡不能录制,请大神帮忙,公司最近项目比较紧,逼得急啊。。。。。。。。。。。。本人QQ:771025439,谢谢了
页:
[1]