From 7484eb1edfaf8bab8548014db5a68e3e0fabcaf1 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 1 Jun 2022 18:52:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E3=80=90=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E3=80=91case?= =?UTF-8?q?=E9=9B=86=E5=90=88=E6=8A=A5=E5=91=8A=EF=BC=8C=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=B2=A1=E6=98=BE=E7=A4=BA=E8=AF=AF=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013758 --user=宋天阳 【接口测试】case集合报告,用例统计没显示误报 https://www.tapd.cn/55049933/s/1171950 --- .../api/service/ApiScenarioReportStructureService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 38195a902d..7e2bb0cf45 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java @@ -195,7 +195,7 @@ public class ApiScenarioReportStructureService { totalScenario.set(totalScenario.longValue() + 1); if (StringUtils.equalsIgnoreCase(step.getTotalStatus(), "fail")) { scenarioError.set(scenarioError.longValue() + 1); - } else if (StringUtils.equalsIgnoreCase(step.getTotalStatus(), "errorCode")) { + } else if (StringUtils.equalsAnyIgnoreCase(step.getTotalStatus(), "errorCode", ExecuteResult.errorReportResult.name())) { errorReport.set(errorReport.longValue() + 1); } else if (!StringUtils.equalsIgnoreCase(step.getTotalStatus(), "success")) { unExecute.set(unExecute.longValue() + 1);