fix(测试跟踪): 修复 xmind 导入备注缺失问题
This commit is contained in:
parent
1c635c4617
commit
9d1350a97b
|
@ -283,17 +283,20 @@ public class XmindCaseParser {
|
||||||
|
|
||||||
// 测试步骤处理
|
// 测试步骤处理
|
||||||
List<Attached> steps = new LinkedList<>();
|
List<Attached> steps = new LinkedList<>();
|
||||||
|
StringBuilder rc = new StringBuilder();
|
||||||
if (attacheds != null && !attacheds.isEmpty()) {
|
if (attacheds != null && !attacheds.isEmpty()) {
|
||||||
attacheds.forEach(item -> {
|
attacheds.forEach(item -> {
|
||||||
if (isAvailable(item.getTitle(), PC_REGEX)) {
|
if (isAvailable(item.getTitle(), PC_REGEX)) {
|
||||||
testCase.setPrerequisite(replace(item.getTitle(), PC_REGEX));
|
testCase.setPrerequisite(replace(item.getTitle(), PC_REGEX));
|
||||||
} else if (isAvailable(item.getTitle(), RC_REGEX)) {
|
} else if (isAvailable(item.getTitle(), RC_REGEX)) {
|
||||||
testCase.setRemark(replace(item.getTitle(), RC_REGEX));
|
rc.append(replace(item.getTitle(), RC_REGEX));
|
||||||
|
rc.append("\n");
|
||||||
} else {
|
} else {
|
||||||
steps.add(item);
|
steps.add(item);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
testCase.setRemark(rc.toString());
|
||||||
testCase.setSteps(this.getSteps(steps));
|
testCase.setSteps(this.getSteps(steps));
|
||||||
testCases.add(testCase);
|
testCases.add(testCase);
|
||||||
// 校验合规性
|
// 校验合规性
|
||||||
|
|
Loading…
Reference in New Issue