fix(接口测试): tcp请求导出以及转性能测试时className不再使用我们覆盖了的类
--bug=1031030 --user=宋天阳 【性能测试】github#26844,TCP协议性能测试报告与JMeter界面的聚合数据不一致 https://www.tapd.cn/55049933/s/1426786
This commit is contained in:
parent
4de8d2a389
commit
77b34eefd9
|
@ -263,8 +263,13 @@ public class MsTCPSampler extends MsTestElement {
|
||||||
tcpSampler.setClassname(this.getClassname());
|
tcpSampler.setClassname(this.getClassname());
|
||||||
}
|
}
|
||||||
if (StringUtils.equals("TCPClientImpl", this.getClassname())) {
|
if (StringUtils.equals("TCPClientImpl", this.getClassname())) {
|
||||||
|
if (config.isOperating()) {
|
||||||
|
//导出时className不转换MsTCPClientImpl。 这个类在性能测试时tps会变得很低
|
||||||
|
tcpSampler.setClassname(TCPSampler.class.getName());
|
||||||
|
} else {
|
||||||
tcpSampler.setClassname(MsTCPClientImpl.class.getCanonicalName());
|
tcpSampler.setClassname(MsTCPClientImpl.class.getCanonicalName());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tcpSampler.setCharset(this.getConnectEncoding());
|
tcpSampler.setCharset(this.getConnectEncoding());
|
||||||
tcpSampler.setServer(this.getServer());
|
tcpSampler.setServer(this.getServer());
|
||||||
tcpSampler.setPort(this.getPort());
|
tcpSampler.setPort(this.getPort());
|
||||||
|
|
Loading…
Reference in New Issue