您的位置:首页 > 其它

loadrunner常见错误解决方法

2013-07-09 11:28 309 查看
1.错误代码27226

提示:

Action.c(36): Rendezvous 获取新闻列表

Action.c(38): Error -27226: The "action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=" argument (number 5) is unrecognized or misplaced
[MsgId: MERR-27226]

Action.c(38): web_custom_request("api1") highest severity level was "ERROR", 0 body bytes, 0 header bytes
[MsgId: MMSG-26388]

源码:char str[1000];

lr_rendezvous("获取新闻列表");

strcpy(str,"action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=");

web_custom_request("api1",

"url=http://223.4.131.48:8080/newsmobiapi/api",

"Method=POST",

"Referer=",

// "Referer= http://10.240.248.103:7006/Comment/{IID}",
//"Mode=http",

str,

LAST);

return 0;

解决方法,strcpy(str,"action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=");改为strcpy(str,"body=action=newsAction&method=getNewsList&categoryId=1&allinfo=1&top=0×tamp=");在参数前面加个body=即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: