|
这是登录脚本,是否能对服务器产生压力,与一般的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; |
|