LoadRunner???REST????json????
???????????? ???????[ 2015/5/12 13:42:22 ] ??????????????????
??????????????????????????REST?????????json?????????loadrunner?????Щjson????????????????
????1?????????
????2?????????get??post??put??
????3??????壨?????loadrunner???????????????????????壩
?????????Щ??????????loadrunner??????????demo???£?
Action()
{
lr_think_time(1);
lr_start_transaction("mnp_mock");
web_reg_save_param("response"??
"LB=1.1"??
"RB=OK"??
"Ord=1"??
"Search=ALL"??
"Notfound=warning"??
LAST);
web_custom_request("upload"??
"URL=http://IP:port/api/api/v1/service/push"??
"Method=POST"??
"TargetFrame="??
"Resource=1"??
"Referer="??
"Mode=HTML"??
"EncType=application/json"??
"Body={"messageID":{messageID}??"groupID":null??"content":"redis putmessage1"??"remark":"20001remark"??"devices":[{"messageID":"{messageID}"??"userID":"{userID}"??"deviceID":"{deviceID}"??"deviceType":"{deviceType}"??"deviceToken":"admkmd121"??"deviceOS":"121os"}??{"messageID":"{messageID}"??"userID":"{userID}"??"deviceID":"{deviceID}"??"deviceType":"{deviceType}"??"deviceToken":"admkmd122"??"deviceOS":"122os"}]}"??
LAST);
if (atoi(lr_eval_string("{response}"))>0)
{
lr_end_transaction("mnp_mock"??LR_PASS);
}
else
{
lr_end_transaction("mnp_mock"??LR_FAIL);
//lr_error_message("%s"??lr_eval_string("{response}"));
}
return 0;
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11