From 0e64f1ca5340f90822a3513b479e168e51ead036 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Tue, 29 Oct 2024 11:42:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=89=B9=E9=87=8F=E6=89=A7=E8=A1=8C=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E8=A1=8C=E9=9B=86=E5=90=88=E6=8A=A5=E5=91=8A=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=94=9F=E6=88=90=E6=89=A7=E8=A1=8C=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048268 --user=陈建星 【接口测试】场景批量执行-生成集合报告-查看场景详情-执行历史-未生成记录 https://www.tapd.cn/55049933/s/1600159 --- .../api/service/scenario/ApiScenarioBatchRunService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java index a3b214cef0..e3b10c178b 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioBatchRunService.java @@ -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);