From 25cadc91154d4655347e25f13edc364241d5915c Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 18 Feb 2022 18:14:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E6=8A=A5=E5=91=8A=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=88=90=E5=8A=9F=E6=95=B0=E7=BB=9F=E8=AE=A1=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010408 --user=赵勇 【接口测试】场景执行报告没显示成功或失败 的场景数量 https://www.tapd.cn/55049933/s/1105982 --- .../api/service/ApiScenarioReportStructureService.java | 1 + 1 file changed, 1 insertion(+) 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 a35be8c761..528591f179 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java @@ -395,6 +395,7 @@ public class ApiScenarioReportStructureService { reportDTO.setScenarioTotal(totalScenario.longValue()); reportDTO.setScenarioError(scenarioError.longValue()); reportDTO.setScenarioErrorReport(errorReport.longValue()); + reportDTO.setScenarioSuccess((totalScenario.longValue() - scenarioError.longValue())); //统计步骤数据 AtomicLong stepErrorCode = new AtomicLong(); calculateStep(stepList, stepError, stepTotal, stepErrorCode, false);