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')); }, () => {