fix(接口测试): TCP接口读不到环境配置的EOL值

--bug=1005011 --user=宋天阳 【接口定义】tcp协议,读取不到环境配置的EOL值
https://www.tapd.cn/55049933/s/1025066
This commit is contained in:
song-tianyang 2021-07-09 17:15:29 +08:00 committed by fit2-zhao
parent 20a401d3cf
commit 3365f44310
1 changed files with 8 additions and 0 deletions

View File

@ -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();
}
}
}
}