loadrunner使用web_custom_request post数据

来源:互联网 发布:淘宝客服的自我介绍 编辑:程序博客网 时间:2024/05/18 00:27

Action()

{

web_custom_request("login",

"URL=http://192.168.1.105:8812/portal/login",  //请求地址

"Method=POST", //请求方式

"Resource=0",

"RecContentType=application/json",

"Referer=",

"Mode=HTTP",

"EncType=application/json", //发送的数据格式

"Body={\"username\":\"lixiulong\":\"password\":\"123456\"}",  //提交的内容,可做参数化

LAST);

return 0;

}

 

1 0