fix(测试跟踪): 功能用例脑图导入失败
--bug=1041530 --user=宋昌昌 【用例管理】xmind文件导入用例-导入失败 https://www.tapd.cn/55049933/s/1533086
This commit is contained in:
parent
a0c75660c5
commit
b8f40d94bf
|
@ -69,7 +69,7 @@ public class XmindParser {
|
||||||
List<JsonRootBean> jsonRootBeans = new ArrayList<>();
|
List<JsonRootBean> jsonRootBeans = new ArrayList<>();
|
||||||
if (contents != null) {
|
if (contents != null) {
|
||||||
for (String content : contents) {
|
for (String content : contents) {
|
||||||
caseCount += content.split("(?:tc:|tc:|TC:|TC:|tc|TC)").length;
|
caseCount += content.split("(?:tc-:|tc-:|TC-:|TC-:|tc-|TC-)").length;
|
||||||
JsonRootBean jsonRootBean = JSON.parseObject(content, JsonRootBean.class);
|
JsonRootBean jsonRootBean = JSON.parseObject(content, JsonRootBean.class);
|
||||||
jsonRootBeans.add(jsonRootBean);
|
jsonRootBeans.add(jsonRootBean);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue