fix(测试跟踪):修复excel导入时测试步骤和预期结果的导入格式错误 (#1811)

Co-authored-by: 黎龙鑫 <lilongxinya@163.com>
This commit is contained in:
metersphere-bot 2021-04-01 19:24:57 +08:00 committed by 刘瑞斌
parent d63ea666cc
commit 8fffc57a6f
1 changed files with 2 additions and 2 deletions

View File

@ -269,12 +269,12 @@ public class TestCaseDataListener extends EasyExcelListener<TestCaseExcelData> {
String[] stepRes = new String[1];
if (data.getStepDesc() != null) {
stepDesc = data.getStepDesc().split("\r\n");
stepDesc = data.getStepDesc().split("\r\n|\n");
} else {
stepDesc[0] = "";
}
if (data.getStepResult() != null) {
stepRes = data.getStepResult().split("\r\n");
stepRes = data.getStepResult().split("\r\n|\n");
} else {
stepRes[0] = "";
}