From b9d0402806d066b2e09f970a380ff8a44ad8e80a Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 14 Jul 2022 11:03:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8A=A5=E5=91=8A=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E7=8E=87=E8=AE=A1=E7=AE=97=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014857 --user=陈建星 [测试计划]github#15750一共8条用例,通过了4条,2条未执行,2条进行中,通过率这个100% https://www.tapd.cn/55049933/s/1201421 --- .../main/java/io/metersphere/track/service/TestPlanService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 5e90cc6d64..348471e898 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -1820,7 +1820,7 @@ public class TestPlanService { report.setExecuteRate(0.0); } if (report.getPassCount() != 0 && report.getCaseCount() != null) { - report.setPassRate(report.getPassCount() * 0.1 * 10 / report.getExecuteCount()); + report.setPassRate(report.getPassCount() * 0.1 * 10 / report.getCaseCount()); } else { report.setPassRate(0.0); }