fix(接口测试): 禁用场景不校验
This commit is contained in:
parent
8eeb51258f
commit
8dc66e9268
|
@ -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};
|
||||||
|
|
Loading…
Reference in New Issue