diff --git a/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java b/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java index a7495651c2..e273164ec2 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java @@ -67,7 +67,8 @@ public class TestPlanUtils { report.setCaseCount((report.getCaseCount() == null ? 0 : report.getCaseCount()) + 1); String status = item.getStatus(); if (StringUtils.isNotBlank(status) - && !StringUtils.equalsAny(status, TestPlanTestCaseStatus.Underway.name(), TestPlanTestCaseStatus.Prepare.name())) { + && !StringUtils.equalsAnyIgnoreCase(status, TestPlanTestCaseStatus.Underway.name(), TestPlanTestCaseStatus.Prepare.name(), + ExecuteResult.UN_EXECUTE.getValue(), ExecuteResult.STOP.getValue())) { // 计算执行过的数量 report.setExecuteCount(report.getExecuteCount() + 1); if (StringUtils.equals(successStatus, status)) {