fix(接口测试): json请求体填写多个jmeter函数,解析失败

--bug=1044699 --user=陈建星 【接口测试】接口用例中使用jmeter随机生成字符串函数创建多个用户(MSv3的创建用户接口)失败了 https://www.tapd.cn/55049933/s/1563142
This commit is contained in:
AgAngle 2024-08-15 11:27:51 +08:00 committed by 刘瑞斌
parent 6dc2581360
commit b8135f444a
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class MsJsonBodyConverter extends MsBodyConverter<JsonBody> {
* @return
*/
protected String replaceMockComma(String text) {
String pattern = "\\$\\{__Mock\\((.+)\\)\\}";
String pattern = "\\$\\{__Mock\\((.+?)\\)\\}";
Pattern regex = Pattern.compile(pattern);
Matcher matcher = regex.matcher(text);
while (matcher.find()) {