fix(测试跟踪): 修复导入提示语问题

This commit is contained in:
fit2-zhao 2020-10-19 10:49:45 +08:00
parent ce90cf9cb5
commit 70cfa135c6
1 changed files with 4 additions and 3 deletions

View File

@ -95,11 +95,12 @@ public class XmindCaseParser {
}
String path = "";
for (int i = 0; i < nodes.length; i++) {
path += nodes[i].trim() + "/";
if (i != 0 && StringUtils.equals(nodes[i].trim(), "")) {
process.append(path + "" + Translator.get("module_not_null") + "; ");
process.append(Translator.get("module") + ":【" + path + "" + Translator.get("module_not_null") + "; ");
} else if (nodes[i].trim().length() > 30) {
process.append(nodes[i].trim() + "" + Translator.get("test_track.length_less_than") + "30 ;");
} else {
path += nodes[i].trim() + "/";
}
}
});
@ -124,7 +125,7 @@ public class XmindCaseParser {
}
for (int i = 0; i < nodes.length; i++) {
if (i != 0 && StringUtils.equals(nodes[i].trim(), "")) {
stringBuilder.append(Translator.get("test_case") + "" + data.getName() + Translator.get("module_not_null") + "; ");
stringBuilder.append(Translator.get("test_case") + ":【" + data.getName() + "" + Translator.get("module_not_null") + "; ");
break;
} else if (nodes[i].trim().length() > 30) {
stringBuilder.append(nodes[i].trim() + "" + Translator.get("module") + Translator.get("test_track.length_less_than") + "30 ;");