feat(用例管理): 用例导出增加备注字段
This commit is contained in:
parent
cfd1bb7791
commit
86bed46177
|
@ -26,6 +26,8 @@ public class FunctionalCaseExportColumns {
|
|||
systemColumns.put("text_description", Translator.get("case.export.system.columns.text_description"));
|
||||
systemColumns.put("expected_result", Translator.get("case.export.system.columns.expected_result"));
|
||||
systemColumns.put("tags", Translator.get("xmind_tags"));
|
||||
systemColumns.put("description", Translator.get("xmind_description"));
|
||||
|
||||
|
||||
// 其他字段
|
||||
otherColumns.put("last_execute_result", Translator.get("case.export.system.other.columns.last_execute_result"));
|
||||
|
|
|
@ -219,6 +219,7 @@ public class FunctionalCaseFileService {
|
|||
testCaseDTO.setName(Translator.get("test_case") + i);
|
||||
testCaseDTO.setModule(path.toString());
|
||||
testCaseDTO.setPrerequisite(Translator.get("test_case_prerequisite"));
|
||||
testCaseDTO.setDescription(Translator.get("test_case_remark"));
|
||||
testCaseDTO.setCaseEditType("STEP");
|
||||
String textDescription = "";
|
||||
String expectedResult = "";
|
||||
|
@ -653,7 +654,8 @@ public class FunctionalCaseFileService {
|
|||
//构建步骤
|
||||
buildExportStep(data, functionalCaseBlob, functionalCase.getCaseEditType(), textDescriptionList, expectedResultList);
|
||||
data.setPrerequisite(parseHtml(new String(functionalCaseBlob.getPrerequisite() == null ? new byte[0] : functionalCaseBlob.getPrerequisite(), StandardCharsets.UTF_8)));
|
||||
|
||||
//备注
|
||||
data.setDescription(parseHtml(new String(functionalCaseBlob.getDescription() == null ? new byte[0] : functionalCaseBlob.getDescription(), StandardCharsets.UTF_8)));
|
||||
//标签
|
||||
data.setTags(JSON.toJSONString(functionalCase.getTags()));
|
||||
data.setCaseEditType(functionalCase.getCaseEditType());
|
||||
|
|
|
@ -444,6 +444,9 @@ public class XmindExportUtil {
|
|||
case "tags":
|
||||
preTopic.setTitleText(columns.getSystemColumns().get(item).concat(":").concat(parseTag(dto.getTags())));
|
||||
break;
|
||||
case "description":
|
||||
preTopic.setTitleText(columns.getSystemColumns().get(item).concat(":").concat(dto.getDescription()));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue