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=該項目下已存在用例: