From 8702ab9cdad76b36bf7d9424c4cfb5936ca83ab3 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Mon, 30 May 2022 10:52:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E9=9B=86=E6=88=90=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E4=B8=AD=E5=BD=93=E8=AF=AF=E6=8A=A5=E4=BC=98=E5=85=88?= =?UTF-8?q?=E7=BA=A7=E5=B0=8F=E4=BA=8E=E5=A4=B1=E8=B4=A5=E4=BC=98=E5=85=88?= =?UTF-8?q?=E7=BA=A7=E6=97=B6=E5=87=BA=E7=8E=B0=E7=9A=84=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013308 --user=宋天阳 【接口测试】批量执行case-开启误报-报告中误报tab页未显示误报数据,显示到了失败tab页 https://www.tapd.cn/55049933/s/1167385 --- .../api/service/ApiScenarioReportStructureService.java | 3 +-- .../api/automation/report/components/ScenarioResults.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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; } } }