From 28027266ab67bd81e694172183f81ba95be6e26a Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Thu, 27 Jan 2022 15:40:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E5=86=85=E5=90=AB=E5=A4=9A=E6=9D=A1=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E5=88=87=E6=8D=A2=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E6=97=B6=E9=83=A8=E5=88=86=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010039 --user=宋天阳 【测试跟踪】测试计划报告里,失败的性能用例报告显示和所有用例里不一样【+github#10047】 https://www.tapd.cn/55049933/s/1100037 --- .../io/metersphere/commons/utils/ErrorReportLibraryUtil.java | 2 +- .../track/plan/view/comonents/load/LoadCaseReportView.vue | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java b/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java index e41c234c11..8691e2f132 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java +++ b/backend/src/main/java/io/metersphere/commons/utils/ErrorReportLibraryUtil.java @@ -26,9 +26,9 @@ public class ErrorReportLibraryUtil { if (StringUtils.startsWith(assertion.getContent(), ERROR_CODE_START)) { errorReportAssertionList.add(assertion); }else { + otherAssertionCount ++; if(!assertion.isPass()){ hasOtherErrorAssertion = true; - otherAssertionCount ++; } } } diff --git a/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue b/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue index 2e234ee4cf..7fc9991891 100644 --- a/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue +++ b/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue @@ -264,10 +264,14 @@ export default { } }, clearData() { + this.show = false; this.startTime = '0'; this.endTime = '0'; this.minutes = '0'; this.seconds = '0'; + this.$nextTick(() => { + this.show = true; + }) }, stopTest(forceStop) { this.result = this.$get('/performance/stop/' + this.reportId + '/' + forceStop, () => {