您的位置:首页 > 产品设计 > UI/UE

loadrunner 函数web.custom_request使用

2016-07-29 11:18 453 查看
1、脚本样例

发送HTTP请求(参数为JSON格式)

//获取web.custom_request函数发送的结果,ps: web.reg_save_param一定要放在custom_request上面
结果样例: //custId":"60066666666","custName
web.reg_save_param ("p_custId",

new String []{

"NOTFOUND=ERROR",

"LB=custId\":\"",

"RB=\",\"custName" ,

"LAST"} );

//发送的HTTP请求
web.custom_request("OpenAPI.do",
"Method=POST",
new String[]{
"URL=http://x.x.x.x:8080/front/login.app",
"Mode=HTTP",
"EncType=application/x-www-form-urlencoded; text/html; charset=utf-8", //编码类型
"Body={"functionCode":"","terminal":"APP"}",
//BODY的内容
"TargetFrame=",
"LAST"});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  loadrunner