From 236765bcdbaec7bd157999d92a1a9a3444e3efb9 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 20 Feb 2023 18:51:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E5=AF=BC=E5=85=A5=E6=A8=A1=E6=9D=BF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=A7=E5=B0=8F=E5=86=99=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023445 --user=宋昌昌 【测试跟踪】功能用例,导出的excel用例模板提示的用例状态,和导入时要求的值不一样 https://www.tapd.cn/55049933/s/1338942 --- .../excel/handler/FunctionCaseTemplateWriteHandler.java | 4 ++-- .../backend/src/main/resources/i18n/commons_en_US.properties | 1 + .../backend/src/main/resources/i18n/commons_zh_CN.properties | 1 + .../backend/src/main/resources/i18n/commons_zh_TW.properties | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java b/test-track/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java index 8fa197a05c..41733a31e3 100644 --- a/test-track/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java +++ b/test-track/backend/src/main/java/io/metersphere/excel/handler/FunctionCaseTemplateWriteHandler.java @@ -92,7 +92,7 @@ public class FunctionCaseTemplateWriteHandler implements RowWriteHandler { if (CollectionUtils.isEmpty(list)) { setComment(priorityIndex, Translator.get("options").concat("(P0、P1、P2、P3)")); } else { - setComment(priorityIndex, Translator.get("options").concat(JSON.toJSONString(list))); + setComment(priorityIndex, Translator.get("options").concat(JSON.toJSONString(list)).concat(Translator.get("cannot_ignore_case"))); } list.clear(); @@ -100,7 +100,7 @@ public class FunctionCaseTemplateWriteHandler implements RowWriteHandler { list = caseLevelAndStatusValueMap.get("caseStatus"); } if (CollectionUtils.isNotEmpty(list)) { - setComment(statusIndex, Translator.get("options").concat(JSON.toJSONString(list))); + setComment(statusIndex, Translator.get("options").concat(JSON.toJSONString(list)).concat(Translator.get("cannot_ignore_case"))); } } diff --git a/test-track/backend/src/main/resources/i18n/commons_en_US.properties b/test-track/backend/src/main/resources/i18n/commons_en_US.properties index d8b9f99045..a952d85eec 100644 --- a/test-track/backend/src/main/resources/i18n/commons_en_US.properties +++ b/test-track/backend/src/main/resources/i18n/commons_en_US.properties @@ -14,6 +14,7 @@ invalid_parameter=Invalid parameter! name_already_exists=Name already exists resource_not_exist=The resource does not exist or has been deleted read_permission_file_fail=Failed to read permission file! +cannot_ignore_case=Please pay attention to letter case! #user related user_email_already_exists=User email already exists user_id_is_null=User ID cannot be null diff --git a/test-track/backend/src/main/resources/i18n/commons_zh_CN.properties b/test-track/backend/src/main/resources/i18n/commons_zh_CN.properties index 4356306fcb..75ecda01e7 100644 --- a/test-track/backend/src/main/resources/i18n/commons_zh_CN.properties +++ b/test-track/backend/src/main/resources/i18n/commons_zh_CN.properties @@ -12,6 +12,7 @@ invalid_parameter=非法的参数 name_already_exists=该名称已经存在 resource_not_exist=资源不存在或已删除 read_permission_file_fail=读取权限文件失败! +cannot_ignore_case=请注意大小写! #attachment upload test_case_attachment_upload_not_found=无法上传附件,未找到相关联用例: issues_attachment_upload_not_found=无法上传附件,未找到相关联缺陷: diff --git a/test-track/backend/src/main/resources/i18n/commons_zh_TW.properties b/test-track/backend/src/main/resources/i18n/commons_zh_TW.properties index e20bf50ed3..499ca39e5a 100644 --- a/test-track/backend/src/main/resources/i18n/commons_zh_TW.properties +++ b/test-track/backend/src/main/resources/i18n/commons_zh_TW.properties @@ -12,6 +12,7 @@ invalid_parameter=非法的參數 name_already_exists=該名稱已經存在 resource_not_exist=資源不存在或已刪除 read_permission_file_fail=讀取權限文件失敗! +cannot_ignore_case=請注意大小寫! #attachment upload test_case_attachment_upload_not_found=無法上傳附件,未找到相關用例: issues_attachment_upload_not_found=無法上傳附件,未找到相關缺陷: