fix(测试跟踪): 功能用例步骤导出单个步骤去掉换行符
--user=郭雨琦 --bug=1011085 【测试跟踪】github#11377 #12246 功能用例的单个步骤如果有换行,在导出成xls文件,再导入后,会变成两个步骤 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001011085
This commit is contained in:
parent
bdd05c9309
commit
7caa7cd28e
|
@ -1604,6 +1604,8 @@ public class TestCaseService {
|
|||
if(StringUtils.isEmpty(stepItem)){
|
||||
stepItem = "";
|
||||
}
|
||||
//正则去空格、回车、换行符、制表符
|
||||
stepItem = stepItem.replaceAll("\\s*|\t|\r|\n", "");
|
||||
step.append(num + "." + stepItem + "\n");
|
||||
String resultItem = jsonArray.getJSONObject(j).getString("result");
|
||||
if(StringUtils.isEmpty(resultItem)){
|
||||
|
@ -2748,4 +2750,5 @@ public class TestCaseService {
|
|||
List<TestCaseDTO> testCaseDTOS = publicListTestCase(request);
|
||||
return testCaseNodeService.getNodeByTestCases(testCaseDTOS);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue