From 08a3c98ed6e5c9cd5695ac3030561c920a6113ca Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Sat, 20 Feb 2021 18:50:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8Djmx=E5=AF=BC=E5=85=A5dubbo?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=8F=82=E6=95=B0=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/dto/automation/parse/MsJmeterParser.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java index 4b200fa4cd..95073d5b45 100644 --- a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java +++ b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java @@ -233,24 +233,24 @@ public class MsJmeterParser extends ScenarioImportAbstractParser { elementNode.setConsumerAndService(consumerAndService); List methodArguments = Constants.getMethodArgs(sampler); + List methodArgs = new LinkedList<>(); if (CollectionUtils.isNotEmpty(methodArguments)) { - List methodArgs = new LinkedList<>(); methodArguments.forEach(item -> { KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue()); methodArgs.add(keyValue); }); - elementNode.setArgs(methodArgs); } + elementNode.setArgs(methodArgs); List arguments = Constants.getAttachmentArgs(sampler); + List attachmentArgs = new LinkedList<>(); if (CollectionUtils.isNotEmpty(arguments)) { - List methodArgs = new LinkedList<>(); arguments.forEach(item -> { KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue()); - methodArgs.add(keyValue); + attachmentArgs.add(keyValue); }); - elementNode.setAttachmentArgs(methodArgs); } + elementNode.setAttachmentArgs(attachmentArgs); } /**