fix(接口测试): TCP接口读不到环境配置的EOL值
--bug=1005011 --user=宋天阳 【接口定义】tcp协议,读取不到环境配置的EOL值 https://www.tapd.cn/55049933/s/1025066
This commit is contained in:
parent
20a401d3cf
commit
3365f44310
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue