diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue index 8aec8d87cb..fe5ff479fe 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue @@ -127,7 +127,6 @@ export default { rules: { method: [{required: true, message: this.$t('test_track.case.input_maintainer'), trigger: 'change'}], path: [{required: true, message: this.$t('api_test.definition.request.path_info'), trigger: 'blur'}], - environmentId: [{required: true, message: this.$t('api_test.definition.request.run_env'), trigger: 'change'}], }, runData: [], reportId: "", @@ -218,6 +217,10 @@ export default { } }, runTest() { + if (!this.api.environmentId) { + this.$warning(this.$t('api_test.environment.select_environment')); + return; + } this.$refs['apiData'].validate((valid) => { if (valid) { this.runLoading = true; diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue index 8ed0fa50df..5f8fd26c72 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestTCPPage.vue @@ -6,7 +6,7 @@ - + { if (valid) { this.runLoading = true;