【发布时间】:2018-04-23 14:48:18
【问题描述】:
我正在尝试在 jmeter 中为 URL 参数值执行 beanshell 脚本。我有以下内容:
${__BeanShell(vars.get("query").replaceAll(" ","%20"))}
jmeter 控制台输出如下:
Caused by: bsh.ParseException: In file: inline evaluation of: ``vars.get("query").replaceAll(" ";'' Encountered ";" at line 1, column 33.
我无法弄清楚问题出在哪里,因为那里的字符是 , 而不是 ;。
【问题讨论】: