fix(接口测试): 解决TCP协议导入其他设置丢失数据问题

--user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001017921
This commit is contained in:
guoyuqi 2022-10-13 18:32:39 +08:00 committed by xiaomeinvG
parent 812697a182
commit 90a4dce5dc
1 changed files with 1 additions and 0 deletions

View File

@ -581,6 +581,7 @@ public class JmeterDefinitionParser extends ApiImportAbstractParser<ApiDefinitio
msTCPSampler.setServer(tcpSampler.getServer());
msTCPSampler.setPort(tcpSampler.getPort() + "");
msTCPSampler.setCtimeout(tcpSampler.getConnectTimeout() + "");
msTCPSampler.setClassname(tcpSampler.getProperty(TCPSampler.CLASSNAME).getStringValue());
msTCPSampler.setReUseConnection(tcpSampler.getProperty(TCPSampler.RE_USE_CONNECTION).getBooleanValue());
msTCPSampler.setNodelay(tcpSampler.getProperty(TCPSampler.NODELAY).getBooleanValue());
msTCPSampler.setCloseConnection(tcpSampler.isCloseConnection());