用loadrunner测试API接口的性能,毫无头绪,求详细过程,具体要求如下

2025-04-29 14:41:53
推荐回答(1个)
回答1:

 web_custom_request("login",

  "URL=http://{API_ROOT}/licence/login",

  "Method=POST",

  "TargetFrame=",

  "Resource=0",
  "RecContentType=text/html",   
  "Snapshot=t7.inf",

  "Mode=HTML",

  "Body=App_Key=xxxxxx&App_Secret=xxxx",

  LAST);

以api服务器要求的格式去提交请求即可, 然后保存服务器返回的Access_Token