From dd049e78936894a18c2320b55942e9205246cfa4 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Wed, 5 Aug 2020 18:22:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E6=96=B9=E5=BC=8F=E4=B8=BA?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=97=B6=E9=80=9A=E8=BF=87=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=A6=81=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/view/comonents/TestPlanTestCaseEdit.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue index cf76720022..6cfa70f8fc 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue @@ -366,6 +366,7 @@ this.$nextTick(() => { if (this.testCase.method == 'auto') { if (this.$refs.apiTestDetail && this.testCase.type == 'api') { + this.$refs.apiTestDetail.init(); } else if (this.testCase.type == 'performance') { this.$refs.performanceTestDetail.init(); @@ -432,9 +433,12 @@ this.$post('/test/plan/edit/status/' + planId); }, stepResultChange() { - this.isFailure = this.testCase.steptResults.filter(s => { - return !s.executeResult || s.executeResult === 'Failure' || s.executeResult === 'Blocking'; - }).length > 0; + if (this.testCase.method == 'manual') { + this.isFailure = this.testCase.steptResults.filter(s => { + return !s.executeResult || s.executeResult === 'Failure' || s.executeResult === 'Blocking'; + }).length > 0; + } + } } }