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