fix(测试跟踪): 优化脑图用例已存在提示

--bug=1048110 --user=陈建星 [测试跟踪] github#33630脑图保存提示【该模块下已存在该测试用例】,提示不明确使用不友好 https://www.tapd.cn/55049933/s/1602116
This commit is contained in:
AgAngle 2024-10-30 15:00:43 +08:00 committed by Craftsman
parent b92ed2ab07
commit 49400f8465
3 changed files with 4 additions and 4 deletions

View File

@ -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());
}
}
}

View File

@ -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=该项目下已存在用例:

View File

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