diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index 7450991ab0..6ae48f0cf3 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -362,10 +362,6 @@ export default { 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; } @@ -415,11 +411,7 @@ export default { 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; } 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);