From c25f2bb8f9ca43bc44915bdfe00934583fc2b85d Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 17 Aug 2021 17:44:15 +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=E6=94=B9=E8=AE=A1=E5=88=92=E6=8A=A5=E5=91=8A=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/track/service/TestPlanService.java | 2 ++ .../business/components/track/plan/components/TestPlanList.vue | 1 + 2 files changed, 3 insertions(+) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 893b7bd366..a3a32bfbeb 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -1001,6 +1001,8 @@ public class TestPlanService { performanceRequest.setTestPlanLoadId(caseID); if (StringUtils.equals(ReportTriggerMode.API.name(), triggerMode)) { performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_API.name()); + } else if (StringUtils.equals(ReportTriggerMode.MANUAL.name(), triggerMode)) { + performanceRequest.setTriggerMode(ReportTriggerMode.MANUAL.name()); } else { performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name()); } diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index bb4c60f391..a994d5015c 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -499,6 +499,7 @@ export default { param.testPlanId = this.currentPlanId; param.projectId = getCurrentProjectID(); param.userId = getCurrentUserId(); + param.triggerMode = 'MANUAL'; this.result = this.$post('test/plan/run/', param,() => { this.$success(this.$t('commons.run_success')); }, () => {