From 233528a4fc72ba9a8133b3b1fd6482fe73c36958 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 1 Jun 2022 15:07:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E3=80=90=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E3=80=91=E5=90=8C?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=9C=BA=E6=99=AF=EF=BC=8C=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E5=91=8A=E5=92=8C=E6=B5=8B=E8=AF=95=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E8=AF=A6=E6=83=85=EF=BC=8C=E4=B8=A4=E8=BE=B9=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013740 --user=宋天阳 【接口测试】同一个场景,调试的报告和测试报告详情,两边结果不一致 https://www.tapd.cn/55049933/s/1171409 --- .../api/automation/report/ApiReportDetail.vue | 10 +--------- .../api/automation/report/SysnApiReportDetail.vue | 3 ++- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index c603a4228a..eaf2527f3f 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -403,11 +403,7 @@ this.fullTreeNodes = report.steps; this.content.console = report.console; this.content.error = report.error; - let successCount = (report.total - report.error - report.errorCode); - if (successCount >= report.unExecute) { - // 测试用例的集合报告中如果含有未执行的步骤,则成功数量统计要把未执行的数量给去掉 - successCount = successCount - report.unExecute; - } + let successCount = (report.total - report.error - report.errorCode - report.unExecute); this.content.success = successCount; this.totalTime = report.totalTime; } @@ -460,10 +456,6 @@ this.content.console = report.console; this.content.error = report.error; let successCount = (report.total - report.error - report.errorCode - report.unExecute); - if (successCount >= report.unExecute) { - // 测试用例的集合报告中如果含有未执行的步骤,则成功数量统计要把未执行的数量给去掉 - successCount = successCount - report.unExecute; - } this.content.success = successCount; this.totalTime = report.totalTime; } diff --git a/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue b/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue index 6fff470598..8f52ccb251 100644 --- a/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue @@ -308,7 +308,8 @@ export default { this.content = {scenarios: []}; } this.content.error = this.content.error; - this.content.success = (this.content.total - this.content.error - this.content.errorCode); + + this.content.success = (this.content.total - this.content.error - this.content.errorCode - this.content.unExecute); this.totalTime = this.content.totalTime; this.fullTreeNodes = this.content.steps; this.recursiveSorting(this.fullTreeNodes);