fix(接口测试): 禁用场景不校验
This commit is contained in:
parent
8eeb51258f
commit
8dc66e9268
|
@ -227,12 +227,14 @@ export class Scenario extends BaseConfig {
|
|||
}
|
||||
|
||||
isValid() {
|
||||
if (this.enable) {
|
||||
for (let i = 0; i < this.requests.length; i++) {
|
||||
let validator = this.requests[i].isValid(this.environmentId);
|
||||
if (!validator.isValid) {
|
||||
return validator;
|
||||
}
|
||||
}
|
||||
}
|
||||
return {isValid: true};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue