diff --git a/api-test/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java b/api-test/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java index 8444ad4b02..7a0a20f1cb 100644 --- a/api-test/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java +++ b/api-test/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java @@ -143,8 +143,8 @@ public class ErrorReportLibraryUtil { } }); } - - if (MapUtils.isNotEmpty(errorReportAssertionMap)) { + LogUtil.info(" FAKE_ERROR result: config-higherThanError:" + higherThanError + ", config-higherThanSuccess:" + higherThanSuccess + ", resultIsSuccess: " + resultIsSuccess); + if (CollectionUtils.isNotEmpty(result.errorCodeList)) { if ((higherThanError && !resultIsSuccess) || (higherThanSuccess && resultIsSuccess)) { result.requestStatus = ApiReportStatus.FAKE_ERROR.name(); } diff --git a/api-test/frontend/src/business/home/components/chart/CountChart.vue b/api-test/frontend/src/business/home/components/chart/CountChart.vue index 003e3e9ac4..562d19a8cc 100644 --- a/api-test/frontend/src/business/home/components/chart/CountChart.vue +++ b/api-test/frontend/src/business/home/components/chart/CountChart.vue @@ -95,10 +95,10 @@ export default { borderWidth = 3; dataIsNotEmpty = true; protocolData = [ - { value: this.formatAmount(this.apiData.httpCount), name: 'HTTP' }, - { value: this.formatAmount(this.apiData.rpcCount), name: 'RPC' }, - { value: this.formatAmount(this.apiData.tcpCount), name: 'TCP' }, - { value: this.formatAmount(this.apiData.sqlCount), name: 'SQL' }, + { value: this.apiData.httpCount, name: 'HTTP' }, + { value: this.apiData.rpcCount, name: 'RPC' }, + { value: this.apiData.tcpCount, name: 'TCP' }, + { value: this.apiData.sqlCount, name: 'SQL' }, ]; } let optionData = {