From 18538169e48b4e6e8e685eae2c85fa96d5fd7417 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Tue, 2 Aug 2022 11:53:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8A=A5=E5=91=8A=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E7=8E=87=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015582 --user=张大海 【测试跟踪】github#16534,测试计划-关联UI自动化-点执行-报告成功率显示不对 https://www.tapd.cn/55049933/s/1217248 --- .../io/metersphere/track/service/TestPlanReportService.java | 6 ++++++ 1 file changed, 6 insertions(+) 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());