This commit is contained in:
shiziyuan9527 2020-08-26 18:05:52 +08:00
commit 00acafbcdc
1 changed files with 6 additions and 4 deletions

View File

@ -227,10 +227,12 @@ export class Scenario extends BaseConfig {
} }
isValid() { isValid() {
for (let i = 0; i < this.requests.length; i++) { if (this.enable) {
let validator = this.requests[i].isValid(this.environmentId); for (let i = 0; i < this.requests.length; i++) {
if (!validator.isValid) { let validator = this.requests[i].isValid(this.environmentId);
return validator; if (!validator.isValid) {
return validator;
}
} }
} }
return {isValid: true}; return {isValid: true};