fix(接口测试): 修复禁用父级步骤,子步骤无法执行的缺陷
--bug=1033054 --user=王孝刚 【接口测试】接口自动化-A步骤下有子级步骤-禁用A步骤-单独执行子级步骤-一直显示测试中 https://www.tapd.cn/55049933/s/1446411
This commit is contained in:
parent
f2b2a95df4
commit
7103eb8bd5
|
@ -1849,17 +1849,18 @@ export default {
|
||||||
this.debugLoading = false;
|
this.debugLoading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let enableArray;
|
if (runScenario && !runScenario.stepScenario) {
|
||||||
for (let i = 0; i < this.scenarioDefinition.length; i++) {
|
let enableArray = 0;
|
||||||
if (this.scenarioDefinition[i].enable) {
|
for (let i = 0; i < this.scenarioDefinition.length; i++) {
|
||||||
enableArray = this.scenarioDefinition[i];
|
if (!this.scenarioDefinition[i].enable) {
|
||||||
break;
|
enableArray ++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (enableArray > 0 && enableArray === this.scenarioDefinition.length) {
|
||||||
|
this.$warning(this.$t('api_test.definition.request.debug_warning'));
|
||||||
|
this.debugLoading = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!enableArray) {
|
|
||||||
this.$warning(this.$t('api_test.definition.request.debug_warning'));
|
|
||||||
this.debugLoading = false;
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.stopDebug = '';
|
this.stopDebug = '';
|
||||||
|
|
Loading…
Reference in New Issue