From 4f1f2f1383b9e37dbc4112cb3a6064bcf6856fda Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 25 Jul 2022 14:09:02 +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=E9=87=8D=E8=B7=91=E6=9C=AA=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E8=AF=AF=E6=8A=A5=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015206 --user=赵勇 【接口测试】失败重跑,返回200的误报状态的接口也重跑了 https://www.tapd.cn/55049933/s/1209786 --- .../base/mapper/ext/ExtApiDefinitionExecResultMapper.xml | 2 +- .../components/api/automation/report/ApiReportDetail.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml index 051d1a48ca..aa14fe3cce 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml @@ -482,7 +482,7 @@ INNER JOIN api_test_case c ON r.resource_id = c.id AND c.`status` != 'Trash' WHERE - r.STATUS != 'success' + r.status not in ('success','errorReportResult','errorReport') AND r.integrated_report_id = #{reportId} ORDER BY r.create_time ASC diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index aa8ebcc56e..5b24ccbfc0 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -211,7 +211,7 @@ export default { if (hasLicense() && this.fullTreeNodes && this.fullTreeNodes.length > 0 && !this.isShare) { this.fullTreeNodes.forEach(item => { item.redirect = true; - if (item.totalStatus === 'fail' || item.unExecuteTotal > 0 + if (item.totalStatus === 'fail' || item.totalStatus === 'error' || item.unExecuteTotal > 0 || (item.type === "API" && item.totalStatus === 'unexecute')) { this.showRerunButton = true; }