提交 c13baa2f 编写于 作者: Q q4speed

fix(接口测试): 修复TCP配置被场景配置覆盖的bug

上级 fea37387
......@@ -1052,10 +1052,21 @@ class JMXTCPRequest {
obj.set(scenario.environment.config.tcpConfig, true);
return obj;
}
obj.set(scenario.tcpConfig, true);
this.copy(this, scenario.tcpConfig);
return obj;
}
copy(target, source) {
for (let key in source) {
if (source.hasOwnProperty(key)) {
if (source[key] !== undefined && !target[key]) {
target[key] = source[key];
}
}
}
}
}
class JMeterTestPlan extends Element {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册