fix(接口测试): 修复批量执行case串行并行生成集合报告生成报告触发方式为:手动触发的缺陷

--bug=1010863 --user=王孝刚 【接口测试】批量执行case-串行/并行-集合报告-生成报告触发方式为:手动触发
https://www.tapd.cn/55049933/s/1114537
This commit is contained in:
wxg0103 2022-03-07 15:06:40 +08:00 committed by 刘瑞斌
parent 4a54da4b21
commit 8dacf510f2
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ public class ApiCaseExecuteService {
&& StringUtils.isNotEmpty(request.getConfig().getReportName())) { && StringUtils.isNotEmpty(request.getConfig().getReportName())) {
serialReportId = UUID.randomUUID().toString(); serialReportId = UUID.randomUUID().toString();
APIScenarioReportResult report = apiScenarioReportService.init(request.getConfig().getReportId(), null, request.getConfig().getReportName(), APIScenarioReportResult report = apiScenarioReportService.init(request.getConfig().getReportId(), null, request.getConfig().getReportName(),
ReportTriggerMode.MANUAL.name(), ExecuteType.Saved.name(), request.getProjectId(), ReportTriggerMode.BATCH.name(), ExecuteType.Saved.name(), request.getProjectId(),
null, request.getConfig()); null, request.getConfig());
report.setVersionId(caseList.get(0).getVersionId()); report.setVersionId(caseList.get(0).getVersionId());
report.setName(request.getConfig().getReportName()); report.setName(request.getConfig().getReportName());