fix(测试跟踪): 修复测试计划执行时未执行的用例状态为running的问题

--bug=1013837 --user=宋天阳 【测试跟踪】测试计划,接口用例,执行异常case,任务中心一直running
https://www.tapd.cn/55049933/s/1175997
This commit is contained in:
song-tianyang 2022-06-08 11:53:57 +08:00 committed by f2c-ci-robot[bot]
parent e5686f958d
commit e8ebf1a65b
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public class TestResultService {
}
}
}
} else if (StringUtils.equals(dto.getRunMode(), ApiRunMode.DEFINITION.name())) {
} else if (StringUtils.equalsAnyIgnoreCase(dto.getRunMode(), ApiRunMode.DEFINITION.name(), ApiRunMode.API_PLAN.name(), ApiRunMode.SCHEDULE_API_PLAN.name())) {
ApiDefinitionExecResultWithBLOBs record = new ApiDefinitionExecResultWithBLOBs();
record.setId(dto.getReportId());
record.setStatus("STOP");