diff --git a/frontend/src/business/components/api/automation/scenario/common/RunMode.vue b/frontend/src/business/components/api/automation/scenario/common/RunMode.vue index 65bcd64c6a..2bc9cb5720 100644 --- a/frontend/src/business/components/api/automation/scenario/common/RunMode.vue +++ b/frontend/src/business/components/api/automation/scenario/common/RunMode.vue @@ -154,7 +154,7 @@ export default { }) }, handleRunBatch() { - if (this.runConfig.mode === 'serial' && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") { + if ((this.runConfig.mode === 'serial' || this.runConfig.mode === 'parallel') && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") { this.$warning(this.$t('commons.input_name')); return; } diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue index 27c3b4697a..c3927521a4 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue @@ -92,6 +92,7 @@ export default { runModeVisible: false, resourcePools: [], runConfig: { + reportName: "", mode: "serial", reportType: "iddReport", onSampleError: false, @@ -117,12 +118,14 @@ export default { this.runConfig.onSampleError = false; this.runConfig.runWithinResourcePool = false; this.runConfig.resourcePoolId = null; + this.runConfig.reportName = ""; }, close() { this.runConfig = { mode: "serial", reportType: "iddReport", onSampleError: false, + reportName: "", runWithinResourcePool: false, resourcePoolId: null, envMap: new Map(), @@ -133,6 +136,10 @@ export default { this.$emit('close'); }, handleRunBatch() { + if ((this.runConfig.mode === 'serial' || this.runConfig.mode === 'parallel') && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") { + this.$warning(this.$t('commons.input_name')); + return; + } this.$emit("handleRunBatch", this.runConfig); this.close(); },