From ad2a471e4d0b061a95b7793bd3175b6658251259 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Thu, 26 May 2022 16:51:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E7=BB=9F=E8=AE=A1=E4=B8=8D=E6=AD=A3=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013522 --user=宋天阳 【接口测试】批量执行场景,报告的数据统计是错的 https://www.tapd.cn/55049933/s/1165277 --- .../api/service/ApiScenarioReportStructureService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java index 1021a835bb..a773e79442 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java @@ -586,6 +586,8 @@ public class ApiScenarioReportStructureService { AtomicLong allUnExecute = new AtomicLong(); this.countAllUnexecute(stepList, allUnExecute); reportDTO.setUnExecute(allUnExecute.longValue()); + //之前的total中请求数是按照获得报告的响应数来算的。这里要加上未执行的数量 + reportDTO.setTotal(reportDTO.getTotal() + allUnExecute.longValue()); } return reportDTO; }