From fc39278cae2869d3e46d1504acb9a9e729e6e604 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Thu, 9 Jul 2020 16:22:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=8F=90=E4=BA=A4Case=E7=BB=93?= =?UTF-8?q?=E8=AE=BA=E6=97=B6=E5=A2=9E=E5=8A=A0=E9=98=B2=E5=91=86=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan/view/comonents/TestPlanTestCaseEdit.vue | 12 ++++++++++++ frontend/src/i18n/en-US.js | 2 ++ frontend/src/i18n/zh-CN.js | 3 +++ frontend/src/i18n/zh-TW.js | 2 ++ 4 files changed, 19 insertions(+) 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: "移動用例",