提交 926fe55f 编写于 作者: F fit2-zhao 提交者: 刘瑞斌

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

上级 9759d4fe
......@@ -52,7 +52,7 @@ public class ScenarioVariable {
}
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 false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册