From 3365f44310e4f02bd98a489c1810fc3e59f14925 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Fri, 9 Jul 2021 17:15:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20TC?= =?UTF-8?q?P=E6=8E=A5=E5=8F=A3=E8=AF=BB=E4=B8=8D=E5=88=B0=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE=E7=9A=84EOL=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1005011 --user=宋天阳 【接口定义】tcp协议,读取不到环境配置的EOL值 https://www.tapd.cn/55049933/s/1025066 --- .../api/dto/definition/request/sampler/MsTCPSampler.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 4e9bac2ec0..4dde2cd85c 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 @@ -184,6 +184,14 @@ public class MsTCPSampler extends MsTestElement { if (!isCustomizeReq() && config != null && config.getTcpConfig() != null) { this.server = config.getTcpConfig().getServer(); this.port = config.getTcpConfig().getPort(); + if(StringUtils.equals(this.eolByte," ")){ + this.eolByte = ""; + }else{ + if(StringUtils.isEmpty(this.eolByte)){ + this.eolByte = config.getTcpConfig().getEolByte(); + } + } + } }