diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanCoverageDTO.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanCoverageDTO.java index e8ac358c7d..b833eb16df 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanCoverageDTO.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanCoverageDTO.java @@ -19,9 +19,9 @@ public class TestPlanCoverageDTO { * 归档未通过 */ private int passed = 0; - private int passed_archived = 0; + private int passedArchived = 0; private int notPassed = 0; - private int notPassed_archived = 0; + private int notPassedArchived = 0; /** * 已完成 @@ -46,7 +46,7 @@ public class TestPlanCoverageDTO { if (isArchived) { this.archived++; - this.notPassed_archived++; + this.notPassedArchived++; } else { this.prepared++; this.notPassed++; @@ -58,7 +58,7 @@ public class TestPlanCoverageDTO { if (isArchived) { this.archived++; - this.passed_archived++; + this.passedArchived++; } else { this.finished++; this.passed++; @@ -70,7 +70,7 @@ public class TestPlanCoverageDTO { if (isArchived) { this.archived++; - this.notPassed_archived++; + this.notPassedArchived++; } else { this.finished++; this.notPassed++; @@ -82,7 +82,7 @@ public class TestPlanCoverageDTO { if (isArchived) { this.archived++; - this.passed_archived++; + this.passedArchived++; } else { this.running++; this.passed++; @@ -94,7 +94,7 @@ public class TestPlanCoverageDTO { if (isArchived) { this.archived++; - this.notPassed_archived++; + this.notPassedArchived++; } else { this.running++; this.notPassed++; diff --git a/backend/services/test-plan/src/test/java/io/metersphere/plan/controller/TestPlanControllerTests.java b/backend/services/test-plan/src/test/java/io/metersphere/plan/controller/TestPlanControllerTests.java index 1cc594df30..82653f9b0e 100644 --- a/backend/services/test-plan/src/test/java/io/metersphere/plan/controller/TestPlanControllerTests.java +++ b/backend/services/test-plan/src/test/java/io/metersphere/plan/controller/TestPlanControllerTests.java @@ -1882,8 +1882,8 @@ public class TestPlanControllerTests extends BaseTest { MvcResult mvcResult = this.requestPostWithOkAndReturn("/test-plan/rage", request); TestPlanCoverageDTO coverageDTO = this.getResultData(mvcResult, TestPlanCoverageDTO.class); - Assertions.assertEquals(coverageDTO.getUnExecute() + coverageDTO.getExecuted(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassed_archived() + coverageDTO.getNotPassed_archived()); - Assertions.assertEquals(coverageDTO.getFinished() + coverageDTO.getRunning() + coverageDTO.getArchived() + coverageDTO.getPrepared(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassed_archived() + coverageDTO.getNotPassed_archived()); + Assertions.assertEquals(coverageDTO.getUnExecute() + coverageDTO.getExecuted(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassedArchived() + coverageDTO.getNotPassedArchived()); + Assertions.assertEquals(coverageDTO.getFinished() + coverageDTO.getRunning() + coverageDTO.getArchived() + coverageDTO.getPrepared(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassedArchived() + coverageDTO.getNotPassedArchived()); }