fix(接口自动化): http请求历史数据名字为空转新版本问题修复
This commit is contained in:
parent
b1e48675c1
commit
c2fab2e142
|
@ -103,6 +103,9 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
HTTPSamplerProxy sampler = new HTTPSamplerProxy();
|
HTTPSamplerProxy sampler = new HTTPSamplerProxy();
|
||||||
sampler.setEnabled(this.isEnable());
|
sampler.setEnabled(this.isEnable());
|
||||||
sampler.setName(this.getName());
|
sampler.setName(this.getName());
|
||||||
|
if (StringUtils.isEmpty(this.getName())) {
|
||||||
|
sampler.setName("HTTPSamplerProxy");
|
||||||
|
}
|
||||||
String name = this.getParentName(this.getParent());
|
String name = this.getParentName(this.getParent());
|
||||||
if (StringUtils.isNotEmpty(name) && !config.isOperating()) {
|
if (StringUtils.isNotEmpty(name) && !config.isOperating()) {
|
||||||
sampler.setName(this.getName() + "<->" + name);
|
sampler.setName(this.getName() + "<->" + name);
|
||||||
|
@ -126,7 +129,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
// 添加环境中的公共变量
|
// 添加环境中的公共变量
|
||||||
Arguments arguments = this.addArguments(config);
|
Arguments arguments = this.addArguments(config);
|
||||||
if (arguments != null) {
|
if (arguments != null) {
|
||||||
tree.add(config.valueSupposeMock(arguments));
|
tree.add(ParameterConfig.valueSupposeMock(arguments));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (config.isEffective(this.getProjectId())) {
|
if (config.isEffective(this.getProjectId())) {
|
||||||
|
|
Loading…
Reference in New Issue