From 49400f8465736f9f2d6427769817eec14c69a6ce Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Wed, 30 Oct 2024 15:00:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=84=91=E5=9B=BE=E7=94=A8=E4=BE=8B=E5=B7=B2?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048110 --user=陈建星 [测试跟踪] github#33630脑图保存提示【该模块下已存在该测试用例】,提示不明确使用不友好 https://www.tapd.cn/55049933/s/1602116 --- .../src/main/java/io/metersphere/service/TestCaseService.java | 4 ++-- .../backend/src/main/resources/i18n/messages_zh_CN.properties | 2 +- .../backend/src/main/resources/i18n/messages_zh_TW.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 20ed8d00d8..53b3af6bb9 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -698,10 +698,10 @@ public class TestCaseService { if (StringUtils.equals(steps, caseSteps) && StringUtils.equals(remark, caseRemark) && StringUtils.equals(prerequisite, casePrerequisite)) { if (checkRepeatFunction != null) { if (checkRepeatFunction.apply(tc)) { - MSException.throwException(Translator.get("test_case_already_exists_in_module")); + MSException.throwException(Translator.get("test_case_already_exists_in_module") + ": " + testCase.getName()); } } else { - MSException.throwException(Translator.get("test_case_already_exists_in_module")); + MSException.throwException(Translator.get("test_case_already_exists_in_module") + ": " + testCase.getName()); } } } diff --git a/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties b/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties index 2a45cbbbb1..98c9da6784 100644 --- a/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -74,7 +74,7 @@ test_case_import_template_sheet=模版 module_not_null=所属模块不能为空格 user_not_exists=该项目下无该用户 test_case_already_exists=该项目下已存在该测试用例 -test_case_already_exists_in_module=该模块下已存在该测试用例 +test_case_already_exists_in_module=模块下已存在该测试用例 parse_data_error=解析数据出错 missing_header_information=缺少头部信息 test_case_exist=该项目下已存在用例: diff --git a/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties b/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties index 5d2eaa5ef4..4de2814982 100644 --- a/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -74,7 +74,7 @@ test_case_import_template_sheet=模版 module_not_null=所屬模塊不能為空格 user_not_exists=該項目下無該用戶 test_case_already_exists=該項目下已存在該測試用例 -test_case_already_exists_in_module=該模塊下已存在該測試用例 +test_case_already_exists_in_module=模塊下已存在該測試用例 parse_data_error=解析數據出錯 missing_header_information=缺少頭部信息 test_case_exist=該項目下已存在用例: