From b743ab91321779aa253a306e0ab88bd5081d1bce Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Wed, 11 Dec 2024 16:02:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=8E=A5=E5=8F=A3=E5=9C=BA=E6=99=AF=E8=BD=AC=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E6=B5=8B=E8=AF=95=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E7=94=9F=E6=88=90CriticalSectionController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/parse/xml/reader/JmeterDocumentParser.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/performance-test/backend/src/main/java/io/metersphere/parse/xml/reader/JmeterDocumentParser.java b/performance-test/backend/src/main/java/io/metersphere/parse/xml/reader/JmeterDocumentParser.java index 06e3a9efb1..b88feb225b 100644 --- a/performance-test/backend/src/main/java/io/metersphere/parse/xml/reader/JmeterDocumentParser.java +++ b/performance-test/backend/src/main/java/io/metersphere/parse/xml/reader/JmeterDocumentParser.java @@ -45,6 +45,7 @@ public class JmeterDocumentParser implements EngineSourceParser { private final static String RESPONSE_ASSERTION = "ResponseAssertion"; private final static String HTTP_SAMPLER_PROXY = "HTTPSamplerProxy"; private final static String CSV_DATA_SET = "CSVDataSet"; + private final static String CRITICAL_SECTION_CONTROLLER = "CriticalSectionController"; private final static String THREAD_GROUP_AUTO_STOP = "io.metersphere.jmeter.reporters.ThreadGroupAutoStop"; private final static List SCRIPTS = new ArrayList<>() {{ add("JSR223PreProcessor"); @@ -127,6 +128,9 @@ public class JmeterDocumentParser implements EngineSourceParser { } else if (ele.getName().endsWith(RESULT_COLLECTOR)) { // 处理结果收集器,性能测试不需要这些 processResultCollector(ele); + } else if (ele.getName().endsWith(CRITICAL_SECTION_CONTROLLER)) { + // 性能测试不需要这些 + processResultCollector(ele); } else if (CollectionUtils.containsAny(SCRIPTS, ele.getName())) { this.elementCacheScript(ele); }