diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index 62384d73e7..7b259aba0e 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -400,7 +400,7 @@ this.fullTreeNodes = report.steps; this.content.console = report.console; this.content.error = report.error; - let successCount = (report.total - report.error - report.errorCode - report.unExecute); + let successCount = (report.total - report.error - report.errorCode); if (successCount >= report.unExecute) { // 测试用例的集合报告中如果含有未执行的步骤,则成功数量统计要把未执行的数量给去掉 successCount = successCount - report.unExecute; diff --git a/frontend/src/business/components/api/automation/report/components/RequestResult.vue b/frontend/src/business/components/api/automation/report/components/RequestResult.vue index ced2c87dd4..151df4c07c 100644 --- a/frontend/src/business/components/api/automation/report/components/RequestResult.vue +++ b/frontend/src/business/components/api/automation/report/components/RequestResult.vue @@ -260,7 +260,7 @@ export default { element.parentNode.removeChild(element); }, loadRequestInfoExpand() { - if(!this.request.responseResult || !this.request.responseResult.body){ + if( !this.request.responseResult || (!this.request.responseResult.body && this.request.responseResult.body === null)){ this.$get("/api/scenario/report/selectReportContent/" + this.stepId, response => { let requestResult = response.data; if (requestResult) { @@ -271,7 +271,7 @@ export default { }); }); }else { - if (this.request.responseResult && this.request.responseResult.body) { + if (this.request.responseResult && (this.request.responseResult.body || this.request.responseResult.body === '')) { this.requestInfo = this.request; } }