diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/processors/MSJSR223Processor.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/processors/MSJSR223Processor.java index 646994e058..e8c10ef5dd 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/processors/MSJSR223Processor.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/processors/MSJSR223Processor.java @@ -1,13 +1,9 @@ package io.metersphere.api.dto.jmeter.processors; import io.metersphere.plugin.annotation.PluginSubType; -import io.metersphere.plugin.api.dto.BaseConfigDTO; import io.metersphere.plugin.api.dto.TestElementDTO; import lombok.Data; import lombok.EqualsAndHashCode; -import org.apache.jorphan.collections.HashTree; - -import java.util.List; @Data @EqualsAndHashCode(callSuper = true) @@ -16,11 +12,4 @@ public class MSJSR223Processor extends TestElementDTO { private String script; private String scriptLanguage; private Boolean jsrEnable; - - @Override - public void toHashTree(HashTree tree, List hashTree, BaseConfigDTO baseConfig) { - if (!this.isEnable()) { - return; - } - } } diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/sampler/MSDebugSampler.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/sampler/MSDebugSampler.java index 69e6e8215b..8fafe114a7 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/sampler/MSDebugSampler.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/jmeter/sampler/MSDebugSampler.java @@ -22,23 +22,6 @@ public class MSDebugSampler extends TestElementDTO { private boolean displayJMeterVariables = true; private boolean displaySystemProperties = false; - @Override - public void toHashTree(HashTree tree, List hashTree, BaseConfigDTO configDTO) { - BaseConfigDTO config = (BaseConfigDTO) configDTO; - // 非导出操作,且不是启用状态则跳过执行 - if (!this.isEnable()) { - return; - } - final HashTree groupTree = tree.add(debugSampler()); - if (CollectionUtils.isNotEmpty(hashTree)) { - hashTree.forEach(el -> { - // 给所有孩子加一个父亲标志 - el.setParent(this); - el.toHashTree(groupTree, el.getHashTree(), config); - }); - } - } - private DebugSampler debugSampler() { DebugSampler debugSampler = new DebugSampler();