fix(接口测试): json请求体填写多个jmeter函数,解析失败
--bug=1044699 --user=陈建星 【接口测试】接口用例中使用jmeter随机生成字符串函数创建多个用户(MSv3的创建用户接口)失败了 https://www.tapd.cn/55049933/s/1563142
This commit is contained in:
parent
6dc2581360
commit
b8135f444a
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue