fix(测试用例): 导入时步骤解析问题#1006477

--bug=1006477 --user=lyh
【github#6065】测试跟踪-Excel测试用例导入测试步骤多于9行时不能继续新增明细行
https://www.tapd.cn/55049933/s/1048785
This commit is contained in:
shiziyuan9527 2021-09-20 14:47:50 +08:00 committed by 刘瑞斌
parent f5d1f0614d
commit fdd3fcea89
1 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,7 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener<Map<Integ
List<String> stepResList = new ArrayList<>();
ListUtils<String> listUtils = new ListUtils<String>();
if (data.getStepDesc() != null) {
String desc = data.getStepDesc().replaceAll("\\n([1-9]\\.)", "\r\n$1");
String desc = data.getStepDesc().replaceAll("\\n([0-9]+\\.)", "\r\n$1");
String[] stepDesc = desc.split("\r\n");
StringBuffer stepBuffer = new StringBuffer();
int lastStepIndex = 1;
@ -544,7 +544,7 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener<Map<Integ
}
if (data.getStepResult() != null) {
String stepResult = data.getStepResult().replaceAll("\\n([1-9]\\.)", "\r\n$1");
String stepResult = data.getStepResult().replaceAll("\\n([0-9]+\\.)", "\r\n$1");
String[] stepRes = stepResult.split("\r\n");
StringBuffer stepBuffer = new StringBuffer();
int lastStepIndex = 1;