fix(测试跟踪):修复excel导入时测试步骤和预期结果的导入格式错误 (#1811)
Co-authored-by: 黎龙鑫 <lilongxinya@163.com>
This commit is contained in:
parent
d63ea666cc
commit
8fffc57a6f
|
@ -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] = "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue