测试过程中,需要处理脚本,替换报文中某些字符,使用beanshell功能也可实现,但是在稳定性压测过程中存在内存泄漏问题,最好使用jmeter自带函数实现主要为如下两种:
strReplace()函数
${_strReplace(<head><,>,)}
把<head>中<替换为>
${_unescapeHTML(>,<)}
jmeter函数使用-替换以及转换函数
原文:https://www.cnblogs.com/erbaozi/p/14957906.html