diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java index 39d18c0f63..6e8d7dd5d0 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java @@ -190,6 +190,12 @@ public class TestPlanReportService { planReportCaseDTOS = extApiScenarioReportMapper.selectForPlanReport(reportIds); TestPlanUtils.buildStatusResultMap(planReportCaseDTOS, statusResultMap, report, "Success"); } + if (MapUtils.isNotEmpty(testPlanExecuteReportDTO.getTestPlanUiScenarioIdAndReportIdMap())) { + // 场景用例 + reportIds = new ArrayList<>(testPlanExecuteReportDTO.getTestPlanUiScenarioIdAndReportIdMap().values()); + planReportCaseDTOS = extApiScenarioReportMapper.selectForPlanReport(reportIds); + TestPlanUtils.buildStatusResultMap(planReportCaseDTOS, statusResultMap, report, "Success"); + } if (MapUtils.isNotEmpty(testPlanExecuteReportDTO.getTestPlanLoadCaseIdAndReportIdMap())) { // 性能用例 reportIds = new ArrayList<>(testPlanExecuteReportDTO.getTestPlanLoadCaseIdAndReportIdMap().values());