fix(接口测试): TCP接口读不到环境配置的EOL值
--bug=1005011 --user=宋天阳 【接口定义】tcp协议,读取不到环境配置的EOL值 https://www.tapd.cn/55049933/s/1025066
This commit is contained in:
parent
09c876f7e9
commit
2dc22ba7d7
|
@ -184,6 +184,14 @@ public class MsTCPSampler extends MsTestElement {
|
||||||
if (!isCustomizeReq() && config != null && config.getTcpConfig() != null) {
|
if (!isCustomizeReq() && config != null && config.getTcpConfig() != null) {
|
||||||
this.server = config.getTcpConfig().getServer();
|
this.server = config.getTcpConfig().getServer();
|
||||||
this.port = config.getTcpConfig().getPort();
|
this.port = config.getTcpConfig().getPort();
|
||||||
|
if(StringUtils.equals(this.eolByte," ")){
|
||||||
|
this.eolByte = "";
|
||||||
|
}else{
|
||||||
|
if(StringUtils.isEmpty(this.eolByte)){
|
||||||
|
this.eolByte = config.getTcpConfig().getEolByte();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue