From ccb11753f377627d19f3c665aee1e8556c16cfa2 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Tue, 16 Apr 2024 11:06:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=96=AD=E8=A8=80=E6=9C=9F=E6=9C=9B=E5=80=BC?= =?UTF-8?q?=E4=B8=AD=E5=B8=A6=E6=9C=89=E7=89=B9=E6=AE=8A=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E6=96=AD=E8=A8=80=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1037889 --user=陈建星 【项目环境】环境管理-断言中添加变量断言-断言匹配包含json格式时,断言错误 https://www.tapd.cn/55049933/s/1497938 --- .../jmeter/processor/assertion/VariableAssertionConverter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/processor/assertion/VariableAssertionConverter.java b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/processor/assertion/VariableAssertionConverter.java index b4511d7cfd..d490e543d4 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/processor/assertion/VariableAssertionConverter.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/parser/jmeter/processor/assertion/VariableAssertionConverter.java @@ -8,6 +8,7 @@ import io.metersphere.plugin.api.dto.ParameterConfig; import io.metersphere.sdk.constants.MsAssertionCondition; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.StringUtils; +import org.apache.commons.text.StringEscapeUtils; import org.apache.jmeter.assertions.JSR223Assertion; import org.apache.jorphan.collections.HashTree; @@ -75,7 +76,7 @@ public class VariableAssertionConverter extends AssertionConverter