From 76d262127070f9a0a7c88402ca9cb4162eea590f Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Mon, 17 May 2021 15:31:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E7=BB=84=E5=90=AF=E7=94=A8=E7=A6=81=E7=94=A8=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../parse/xml/reader/jmx/JmeterDocumentParser.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java index d80b5b9dcd..1321dfe950 100644 --- a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java @@ -88,10 +88,8 @@ public class JmeterDocumentParser implements DocumentParser { for (int i = 0; i < childNodes.getLength(); i++) { Node node = childNodes.item(i); if (node instanceof Element) { + System.out.println(node.getNodeName()); Element ele = (Element) node; - if (invalid(ele)) { - continue; - } if (nodeNameEquals(ele, HASH_TREE_ELEMENT)) { parseHashTree(ele); @@ -812,7 +810,6 @@ public class JmeterDocumentParser implements DocumentParser { elementProp.setAttribute("guiclass", "LoopControlPanel"); elementProp.setAttribute("testclass", "LoopController"); elementProp.setAttribute("testname", "Loop Controller"); - elementProp.setAttribute("enabled", "true"); elementProp.appendChild(createBoolProp(document, "LoopController.continue_forever", false)); elementProp.appendChild(createStringProp(document, "LoopController.loops", "-1")); threadGroup.appendChild(elementProp);