【发布时间】:2018-05-29 12:25:52
【问题描述】:
在 Jmeter 中使用 JSR223 Groovy .. 我花了很多时间尝试在 JSON 块中替换这个字符串
"ABC": {"seconds": 20},
与
"ABC": {"seconds": ${myVal}}, (this way my value in seconds is variable)
我试过了
str1 = str1.replaceAll('"ABC": {"seconds": 20}', '"ABC": {"seconds": '+${myVal}+'"}"');
但它不会工作。请帮忙,
【问题讨论】: