refactor(接口测试): 修复批量禁用场景步骤,执行没有提示的缺陷
--bug=1013863 --user=王孝刚 【接口自动化】批量禁用所有步骤,执行场景无提示 https://www.tapd.cn/55049933/s/1176230
This commit is contained in:
parent
d1e36b6489
commit
1abf13be01
|
@ -1437,7 +1437,7 @@ export default {
|
|||
this.reportId = this.debugReportId;
|
||||
},
|
||||
runDebug(runScenario) {
|
||||
if(this.debugLoading){
|
||||
if (this.debugLoading) {
|
||||
return;
|
||||
}
|
||||
this.debugLoading = true;
|
||||
|
@ -1445,6 +1445,18 @@ export default {
|
|||
this.debugLoading = false;
|
||||
return;
|
||||
}
|
||||
let enableArray;
|
||||
for (let i = 0; i < this.scenarioDefinition.length; i++) {
|
||||
if (this.scenarioDefinition[i].enable) {
|
||||
enableArray = this.scenarioDefinition[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!enableArray) {
|
||||
this.$warning(this.$t('api_test.definition.request.debug_warning'));
|
||||
this.debugLoading = false;
|
||||
return;
|
||||
}
|
||||
this.stopDebug = "";
|
||||
this.clearDebug();
|
||||
this.validatePluginData(this.scenarioDefinition);
|
||||
|
|
|
@ -1255,6 +1255,7 @@ export default {
|
|||
batch_copy_end: "Batch Copy Over",
|
||||
delete_case_confirm: "Confirm case deletion",
|
||||
delete_confirm_step: "Confirm deletion step",
|
||||
debug_warning: "No steps to turn on",
|
||||
assertions_rule: "Assertion rule",
|
||||
scenario_assertions: "Scenario assertion rule",
|
||||
pre_operation: "Pre operation",
|
||||
|
|
|
@ -1261,6 +1261,7 @@ export default {
|
|||
batch_copy_end: "批量复制完成",
|
||||
delete_case_confirm: "确认删除用例",
|
||||
delete_confirm_step: "确认删除步骤",
|
||||
debug_warning: "没有开启的步骤",
|
||||
assertions_rule: "断言规则",
|
||||
scenario_assertions: "场景断言",
|
||||
pre_operation: "前置操作",
|
||||
|
|
|
@ -1261,6 +1261,7 @@ export default {
|
|||
batch_copy_end: "批量復製完成",
|
||||
delete_case_confirm: "確認刪除用例",
|
||||
delete_confirm_step: "確認刪除步驟",
|
||||
debug_warning: "沒有開啟的步驟",
|
||||
assertions_rule: "斷言規則",
|
||||
scenario_assertions: "場景斷言",
|
||||
pre_operation: "前置操作",
|
||||
|
|
Loading…
Reference in New Issue