From ac233c4ca6b796d86f3b63b2ab2d8247766fa569 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 23 Nov 2022 10:14:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E8=AF=AF=E6=8A=A5=E8=A7=A3=E6=9E=90=E5=A2=9E=E5=8A=A0=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 误报解析增加日志 --- .../metersphere/commons/utils/ErrorReportLibraryUtil.java | 4 ++-- .../src/business/home/components/chart/CountChart.vue | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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 = {