fix(接口自动化): 修复1.5.0升级上来的接口测试,转场景后,直接执行场景。在自定义变量中定义参数没有读取到。

This commit is contained in:
fit2-zhao 2021-04-01 16:33:18 +08:00 committed by fit2-zhao
parent 91ae9480b8
commit 710c7cb558
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public class ScenarioVariable {
} }
public boolean isConstantValid() { public boolean isConstantValid() {
if (StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name()) && StringUtils.isNotEmpty(name) && StringUtils.isNotEmpty(value)) { if ((StringUtils.isEmpty(this.type) || StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name())) && StringUtils.isNotEmpty(name) && StringUtils.isNotEmpty(value)) {
return true; return true;
} }
return false; return false;