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 e11b56a6f3..38195a902d 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java @@ -445,8 +445,7 @@ public class ApiScenarioReportStructureService { RequestResultExpandDTO expandDTO = (RequestResultExpandDTO) vo.getRequestResult(); if (expandDTO.getAttachInfoMap() != null && expandDTO.getAttachInfoMap().get("errorReportResult") != null) { treeDTO.setErrorCode(expandDTO.getAttachInfoMap().get("errorReportResult")); - treeDTO.setTotalStatus("errorCode"); - vo.setStatus("errorReportResult"); + treeDTO.setTotalStatus(vo.getStatus()); } else if (StringUtils.isNotEmpty(expandDTO.getStatus())) { vo.setStatus(expandDTO.getStatus()); treeDTO.setTotalStatus(expandDTO.getStatus()); diff --git a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue index 6e4e11442b..2532f0d9eb 100644 --- a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue +++ b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue @@ -73,7 +73,7 @@ export default { if (this.isUi) { return data.value.success === false && data.value.startTime > 0; } else { - return data.value.error > 0; + return data.totalStatus !== 'errorReportResult' && data.value.error > 0; } } }