fix(测试跟踪): 功能用例步骤导出单个步骤去掉换行符
--user=郭雨琦 --bug=1011085 【测试跟踪】github#11377 #12246 功能用例的单个步骤如果有换行,在导出成xls文件,再导入后,会变成两个步骤 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001011085
This commit is contained in:
parent
8ec526bf11
commit
3e0005bed8
|
@ -1567,6 +1567,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)) {
|
||||
|
@ -2738,4 +2740,5 @@ public class TestCaseService {
|
|||
List<TestCaseDTO> testCaseDTOS = publicListTestCase(request);
|
||||
return testCaseNodeService.getNodeByTestCases(testCaseDTOS);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue