diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue index 8feac18a12..e4b42ecb30 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue @@ -282,6 +282,18 @@ + this.$t('test_track.length_less_than') + '300'); return; } + if (!result.executeResult) { + this.$warning(this.testCase.steptResults[i].desc + this.$t('test_track.execution_result') + ); + return; + } + if (!result.actualResult) { + this.$warning(this.testCase.steptResults[i].desc + this.$t('test_track.actual_result') + ); + return; + } + + param.results.push(result); } diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 4eeab9dc8a..fb0e915335 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -386,6 +386,8 @@ export default { recent_plan: "Recent plan", recent_case: "Recent case", pass_rate: "Pass rate", + execution_result: ": Please select the execution result", + actual_result: ": The actual result is empty", case: { test_case: "Case", move: "Move case", diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index d443251b47..13f855be69 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -384,6 +384,9 @@ export default { recent_plan: "最近的计划", recent_case: "最近的用例", pass_rate: "通过率", + execution_result: ": 请选择执行结果", + actual_result: ": 实际结果为空", + case: { test_case: "测试用例", move: "移动用例", diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 03beaede62..40cd2fb0f3 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -384,6 +384,8 @@ export default { recent_plan: "最近的計劃", recent_case: "最近的用例", pass_rate: "通過率", + execution_result: ": 請選擇執行結果", + actual_result: ": 實際結果為空", case: { test_case: "測試用例", move: "移動用例",