From 3843f0b420ccce63530d295657eaacaa64416db2 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 25 Nov 2020 19:21:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A4=84=E7=90=86=E5=8F=82=E6=95=B0=E8=BD=AC?= =?UTF-8?q?=E4=B9=89=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/parse/JmeterDocumentParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/parse/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/api/parse/JmeterDocumentParser.java index efa1771c8c..15b6f198bf 100644 --- a/backend/src/main/java/io/metersphere/api/parse/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/api/parse/JmeterDocumentParser.java @@ -161,7 +161,9 @@ public class JmeterDocumentParser { break; case "Argument.value": String textContent = ele.getTextContent(); - ele.setTextContent(ScriptEngineUtils.calculate(textContent)); + if (StringUtils.startsWith(textContent, "@")) { + ele.setTextContent(ScriptEngineUtils.calculate(textContent)); + } break; default: break;