fix: 场景测试消息

This commit is contained in:
wenyann 2021-04-28 12:06:34 +08:00 committed by 刘瑞斌
parent cb6a4cb285
commit d9bff9324b
1 changed files with 4 additions and 2 deletions

View File

@ -191,8 +191,10 @@ public class ApiScenarioReportService {
startTime = scenarioResult.getRequestResults().get(0).getStartTime();
}
ApiScenarioReport report = editReport(scenarioResult, startTime);
if (!StringUtils.equals(ReportTriggerMode.API.name(), report.getTriggerMode())) {
report.setTriggerMode(ReportTriggerMode.CASE.name());
apiScenarioReportMapper.updateByPrimaryKeySelective(report);
}
// 报告详情内容
ApiScenarioReportDetail detail = new ApiScenarioReportDetail();