diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java index b8b3452160..67d3840eb7 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsTCPSampler.java @@ -273,7 +273,14 @@ public class MsTCPSampler extends MsTestElement { tcpSampler.setProperty(TCPSampler.NODELAY, this.isNodelay()); tcpSampler.setCloseConnection(String.valueOf(this.isCloseConnection())); tcpSampler.setSoLinger(this.getSoLinger()); - tcpSampler.setEolByte(this.getEolByte()); + + if(StringUtils.equalsIgnoreCase("LengthPrefixedBinaryTCPClientImpl",this.classname)){ + //LengthPrefixedBinaryTCPClientImpl取样器不可以设置eolByte + this.eolByte = null; + }else { + tcpSampler.setEolByte(this.getEolByte()); + } + if (StringUtils.isNotEmpty(this.timeout)) { tcpSampler.setTimeout(this.timeout); } @@ -380,7 +387,9 @@ public class MsTCPSampler extends MsTestElement { configTestElement.setProperty(TCPSampler.NODELAY, this.isNodelay()); configTestElement.setProperty(TCPSampler.CLOSE_CONNECTION, this.isCloseConnection()); configTestElement.setProperty(TCPSampler.SO_LINGER, this.getSoLinger()); - configTestElement.setProperty(TCPSampler.EOL_BYTE, this.getEolByte()); + if(!StringUtils.equalsIgnoreCase("LengthPrefixedBinaryTCPClientImpl",this.classname)){ + configTestElement.setProperty(TCPSampler.EOL_BYTE, this.getEolByte()); + } configTestElement.setProperty(TCPSampler.SO_LINGER, this.getSoLinger()); configTestElement.setProperty(ConfigTestElement.USERNAME, this.getUsername()); configTestElement.setProperty(ConfigTestElement.PASSWORD, this.getPassword()); diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportResultService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportResultService.java index f3e2a84beb..ca8331d17f 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportResultService.java @@ -38,9 +38,7 @@ public class ApiScenarioReportResultService { if (StringUtils.isNotEmpty(item.getName()) && item.getName().startsWith("Transaction=") && CollectionUtils.isEmpty(item.getSubRequestResults())) { LoggerUtil.debug("合并事物请求暂不入库"); } else { - if (!StringUtils.startsWithAny(item.getName(), "PRE_PROCESSOR_ENV_", "POST_PROCESSOR_ENV_")) { - apiScenarioReportResultMapper.insert(this.newApiScenarioReportResult(reportId, item)); - } + apiScenarioReportResultMapper.insert(this.newApiScenarioReportResult(reportId, item)); } }); }