您好,登录后才能下订单哦!
1. 基于key/value格式,可参照下列格式:
web_submit_data("queryForeign.do",
"Action=http://10.3.1.91:9001/cms/queryForeign.do",
"Method=POST",
"RecContentType=text/plain",
"Referer=http://10.3.1.21:9001/pweb/welcome.do",
"Mode=HTML",
ITEMDATA,
"Name=FromUserName", "Value=234", ENDITEM,
"Name=ToUserName", "Value=sssss", ENDITEM,
LAST);
注意:RecContentType一定要是“text/plain”;
2. 基于json格式,可参照下列格式:
web_custom_request("eweb-common.Prepose.do",
"URL=http://10.0.161.156:8080/prepose/eweb-common.Prepose.do",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://10.0.161.9:8088/#/userLogin/login",
"Snapshot=t6.inf",
"Mode=HTML",
"EncType=application/json",
"Body={\"Head\":{\"_MChannelId\":\"PFRT\",\"_TransactionId\":\"eweb-common.EppRegistRsf\",\"_locale\":\"zh_CN\"},\"Body\":{\"platFormCd\":\"YFB_PC\",\"idType\":\"01\",\"idNum\":\"320921199008134633\",\"phone\":\"15852915190\",\"mediAcctLevel\":\"2\",\"authState\":\"1\",\"sourceUserId\":\"123\",\"verifyMtd\":\"OTHER\",\"userName\":\"chen\",\"activeState\":\"ACT\",\"cardType\":\"VCAD\",\"drainChnTpCd\":\"JINFU\"}}",
LAST);
注意:body里面的json,在loadrunner中需要加转意字符。
注意:RecContentType, 一定要是“application/json”。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。