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 GitHub
parent 3db60678b8
commit f253b1ec15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]; String[] stepRes = new String[1];
if (data.getStepDesc() != null) { if (data.getStepDesc() != null) {
stepDesc = data.getStepDesc().split("\r\n"); stepDesc = data.getStepDesc().split("\r\n|\n");
} else { } else {
stepDesc[0] = ""; stepDesc[0] = "";
} }
if (data.getStepResult() != null) { if (data.getStepResult() != null) {
stepRes = data.getStepResult().split("\r\n"); stepRes = data.getStepResult().split("\r\n|\n");
} else { } else {
stepRes[0] = ""; stepRes[0] = "";
} }