fix(测试用例): 导出xmind字段问题
--bug=1045424 --user=王旭 【测试用例】用例导出为xmind-用例步骤无内容-导出勾选步骤描述和预期结果-导出后无该字段 https://www.tapd.cn/55049933/s/1584799
This commit is contained in:
parent
5920cf1fd7
commit
865c15999e
|
@ -541,25 +541,16 @@ public class XmindExportUtil {
|
|||
if (style != null) {
|
||||
stepTopic.setStyleId(style.getId());
|
||||
}
|
||||
|
||||
boolean hasResult = false;
|
||||
if (obj.containsKey("result")) {
|
||||
String result = obj.get("result");
|
||||
if (StringUtils.isNotEmpty(result)) {
|
||||
hasResult = true;
|
||||
ITopic resultTopic = workbook.createTopic();
|
||||
resultTopic.setTitleText(Translator.get("xmind_expectedResult").concat(":").concat(result));
|
||||
if (style != null) {
|
||||
resultTopic.setStyleId(style.getId());
|
||||
}
|
||||
stepTopic.add(resultTopic, ITopic.ATTACHED);
|
||||
ITopic resultTopic = workbook.createTopic();
|
||||
resultTopic.setTitleText(Translator.get("xmind_expectedResult").concat(":").concat(result));
|
||||
if (style != null) {
|
||||
resultTopic.setStyleId(style.getId());
|
||||
}
|
||||
stepTopic.add(resultTopic, ITopic.ATTACHED);
|
||||
}
|
||||
|
||||
if (StringUtils.isNotEmpty(desc) || hasResult) {
|
||||
stepDesTopic.add(stepTopic, ITopic.ATTACHED);
|
||||
}
|
||||
|
||||
stepDesTopic.add(stepTopic, ITopic.ATTACHED);
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isEmpty(arr)) {
|
||||
|
|
Loading…
Reference in New Issue