fix(测试跟踪): 测试用例导出报错

This commit is contained in:
chenjianxing 2020-11-04 12:35:38 +08:00
parent 26ba9a93ea
commit 66fb90d8fb
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ public class TestCaseService {
if (t.getMethod().equals("manual")) { if (t.getMethod().equals("manual")) {
String steps = t.getSteps(); String steps = t.getSteps();
String setp = ""; String setp = "";
if (steps.contains("null")) { if (steps.contains("null") && !steps.contains("\"null\"")) {
setp = steps.replace("null", "\"\""); setp = steps.replace("null", "\"\"");
} else { } else {
setp = steps; setp = steps;