LoadRunner 测试json类请求

用以下的方式,注意粗体字部分!
Action()
{
  web_custom_request("web_custom_request",
  "URL=http://urlhead/CpcService.ashx?Method=checkXXXed",
  "Method=POST",
  "Resource=0",
  "RecContentType=application/json",
  "Referer=",
  "Mode=HTTP",
   "EncType=application/json",
  "Body={\"user\":{\"uid\":\"C8-9C-DC-70-BD-B2\"}}",
  LAST);
posted on 2013-02-28 15:13  babyblue  阅读(184)  评论(0)    收藏  举报