fix(接口测试): 场景批量执行,并行集合报告,没有生成执行记录

--bug=1048268 --user=陈建星 【接口测试】场景批量执行-生成集合报告-查看场景详情-执行历史-未生成记录 https://www.tapd.cn/55049933/s/1600159
This commit is contained in:
AgAngle 2024-10-29 11:42:07 +08:00 committed by 刘瑞斌
parent 762ad82317
commit 0e64f1ca53
1 changed files with 4 additions and 1 deletions

View File

@ -180,8 +180,11 @@ public class ApiScenarioBatchRunService {
.collect(Collectors.toMap(ExecTaskItem::getResourceId, ExecTaskItem::getId));
if (runModeConfig.isIntegratedReport()) {
String reportId = runModeConfig.getCollectionReport().getReportId();
// 初始化集合报告和场景的关联关系
initIntegratedReportCaseRecord(reportId, subIds);
// 集合报告初始化一级步骤
initApiScenarioReportStep(apiScenarios, runModeConfig.getCollectionReport().getReportId());
initApiScenarioReportStep(apiScenarios, reportId);
} else {
// 非集合报告初始化独立报告执行时初始化步骤
caseReportMap = initScenarioReport(resourceExecTaskItemMap, runModeConfig, apiScenarios, userId);