loadrunner函数
栗子:
web_custom_request("demoname",
"URL=https://demo-demo.cloudtest.cn:8080/test/demo/xxx",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=https://demo-demo.cloudtest.cn:1234/",
"Snapshot=t146.inf",
"Mode=HTML",
"EncType=application/json",
"BodyBinary={\"name\":\"lr_record\\xE5\\x85\\xBB\\xE8\\xBA\\xAB\\xE5\\xA3\\xB6\",\"nameEN\":\"lr_record_yangshenghu\",\"productModel\":\"lr_record_model123\",\"accessMethod\":\"Wi-Fi\",\"listingTime\":\"2019-12\",\"brandName\":\"lr_record\",\"classificationOid\":\"220\",\"hardwareVersion\":\"lr_record_hw123\",\"accessTypeKey\":\"HARD\"}",
LAST);
说明:
提交的数据包含中文,则使用参数名BodyBinary,并且中文要转码;否则使用Body