diff --git a/backend/src/main/java/io/metersphere/api/controller/APITestController.java b/backend/src/main/java/io/metersphere/api/controller/APITestController.java index a12460dc16..da01d073b2 100644 --- a/backend/src/main/java/io/metersphere/api/controller/APITestController.java +++ b/backend/src/main/java/io/metersphere/api/controller/APITestController.java @@ -234,7 +234,7 @@ public class APITestController { for (ExecuteResultCountDTO execResult : apiCaseExecResultList) { if (StringUtils.isEmpty(execResult.getExecResult())) { unexecuteCount += execResult.getCount(); - } else if (StringUtils.equalsAnyIgnoreCase(execResult.getExecResult(), "Underway", ExecuteResult.TEST_PLAN_PREPARE.toString())) { + } else if (StringUtils.equalsAnyIgnoreCase(execResult.getExecResult(), "Underway", ExecuteResult.STOP.toString(), ExecuteResult.TEST_PLAN_PREPARE.toString())) { unexecuteCount += execResult.getCount(); } else if (StringUtils.equalsIgnoreCase(execResult.getExecResult(), ExecuteResult.API_SUCCESS.toString())) { executionPassCount += execResult.getCount(); diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml index a82761e88a..44fd36bb0a 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml @@ -446,19 +446,19 @@ - and (t1.status IS NULL or t1.status = '' or t1.status = 'Prepare' or t1.status = 'Underway') + and (t3.status IS NULL or t3.status = '' or t3.status = 'Prepare' or t3.status = 'Underway' or t3.status = 'stop') - and t1.status = 'success' + and t3.status = 'success' - and t1.status = 'error' + and t3.status = 'error' - and t1.status = 'errorReportResult' + and t3.status = 'errorReportResult' - and t1.status IN ('error','errorReportResult') + and t3.status IN ('error','errorReportResult') @@ -982,15 +982,16 @@