fix(测试用例): 导出模板取消id&导出id注释修改

--bug=1044592 --user=王旭 【测试用例】excel导入功能用例-未按用户录入的ID导入-仍是系统生成ID https://www.tapd.cn/55049933/s/1564371
This commit is contained in:
WangXu10 2024-08-16 17:50:18 +08:00 committed by Craftsman
parent bd4e38ec7a
commit 83c915b265
4 changed files with 7 additions and 4 deletions

View File

@ -542,7 +542,7 @@ permission.test_plan.name=Test plan
permission.test_plan=Plan
permission.test_plan_report=Report
excel.template.id=Non mandatory, add a new use case when the ID is empty or does not exist;
excel.template.id=Non mandatory, ID is automatically generated by the system; When importing use cases, you can choose whether to cover use cases with the same ID; When the ID is empty or does not exist, it defaults to adding a new use case;;
excel.template.case_edit_type=Not mandatory, fill in STEP for step description, fill in Text for text description, default to Text if not filled in
excel.template.tag=Not mandatory labels should be separated by semicolons or commas
excel.template.text_description=Not mandatory, when the editing mode is STEP, the step description will be based on the identifier [1] [2] [3] To determine whether to split a cell into multiple steps, if not, it is a single step

View File

@ -539,7 +539,7 @@ permission.test_plan.name=测试计划
permission.test_plan=计划
permission.test_plan_report=报告
excel.template.id=非必填ID为空或不存在时新增用例;
excel.template.id=非必填ID为系统自动生成导入用例时可选择择是否覆盖相同ID的用例当ID为空或不存在时默认为新增用例;
excel.template.case_edit_type=非必填步骤描述填写STEP文本描述填写TEXT未填写默认为TEXT
excel.template.tag=非必填,标签之间以分号或者逗号隔开
excel.template.text_description=非必填编辑模式为STEP时步骤描述会根据标识[1] [2] [3]...来判断是否将单元格拆分为多个步骤,没有则为一个步骤

View File

@ -540,7 +540,7 @@ permission.test_plan.name=測試計劃
permission.test_plan=計劃
permission.test_plan_report=報告
excel.template.id=非必填ID為空時或不存在時新增用例
excel.template.id=非必填ID為系統自動生成導入用例時可選擇是否覆蓋相同ID的用例儅ID為空或不存在時默認為新增用例
excel.template.case_edit_type=非必填步驟描述填寫STEP文本描述填寫TEXT為填寫默認為TEXT
excel.template.tag=非必填,標簽之間以分號或者逗號隔開
excel.template.text_description=非必填編輯模式為STEP時步驟描述會根據標識[1] [2] [3]...來判斷是否將單元格拆分為多個步驟,沒有則為一個步驟

View File

@ -7,6 +7,7 @@ import io.metersphere.system.dto.sdk.TemplateCustomFieldDTO;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
@ -64,7 +65,9 @@ public class FunctionalCaseExcelData {
List<List<String>> heads = new ArrayList<>();
FunctionalCaseImportFiled[] fields = FunctionalCaseImportFiled.values();
for (FunctionalCaseImportFiled field : fields) {
heads.add(Arrays.asList(field.getFiledLangMap().get(lang)));
if (!StringUtils.equalsIgnoreCase(field.name(), "ID")) {
heads.add(Arrays.asList(field.getFiledLangMap().get(lang)));
}
}
if (CollectionUtils.isNotEmpty(customFields)) {