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