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 23186d25ef..43681cf068 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -1138,11 +1138,11 @@ public class TestPlanService { performanceRequest.setTestResourcePoolId(runModeConfig.getResourcePoolId()); } if (StringUtils.equals(ReportTriggerMode.API.name(), triggerMode)) { - performanceRequest.setTriggerMode(ReportTriggerMode.API.name()); + performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_API.name()); } else if (StringUtils.equals(ReportTriggerMode.MANUAL.name(), triggerMode)) { performanceRequest.setTriggerMode(ReportTriggerMode.MANUAL.name()); } else { - performanceRequest.setTriggerMode(ReportTriggerMode.SCHEDULE.name()); + performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name()); } String reportId = null; try { diff --git a/frontend/src/business/components/common/tableItem/ReportTriggerModeItem.vue b/frontend/src/business/components/common/tableItem/ReportTriggerModeItem.vue index b43335f07c..4fc1eed866 100644 --- a/frontend/src/business/components/common/tableItem/ReportTriggerModeItem.vue +++ b/frontend/src/business/components/common/tableItem/ReportTriggerModeItem.vue @@ -2,7 +2,8 @@ {{$t('commons.trigger_mode.manual')}} {{$t('commons.trigger_mode.schedule')}} - {{$t('commons.trigger_mode.schedule')}} + {{$t('commons.trigger_mode.test_plan_schedule')}} + {{$t('commons.trigger_mode.test_plan_api')}} {{$t('commons.trigger_mode.api')}} {{$t('api_test.automation.batch_execute')}} diff --git a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue index f6131b3605..f48e91339f 100644 --- a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue +++ b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue @@ -184,7 +184,11 @@ export default { triggerFilters: [ {text: this.$t('commons.trigger_mode.manual'), value: 'MANUAL'}, {text: this.$t('commons.trigger_mode.schedule'), value: 'SCHEDULE'}, + {text: this.$t('commons.trigger_mode.test_plan_schedule'), value: 'TEST_PLAN_SCHEDULE'}, + {text: this.$t('commons.trigger_mode.test_plan_api'), value: 'TEST_PLAN_API'}, {text: this.$t('commons.trigger_mode.api'), value: 'API'}, + {text: this.$t('commons.trigger_mode.case'), value: 'CASE'}, + {text: this.$t('api_test.automation.batch_execute'), value: 'BATCH'}, ], buttons: [ { diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index fb4bb37674..778993a6c5 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -238,6 +238,8 @@ export default { name: "Trigger Mode", manual: "Manual trigger", schedule: "Scheduled Task", + test_plan_schedule: "TestPlan Scheduled Task", + test_plan_api: "TestPlan API call", api: "API call", case: "Case" }, diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 2209f9a6b8..2d32d7971b 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -239,6 +239,8 @@ export default { name: "触发方式", manual: "手动触发", schedule: "定时任务", + test_plan_schedule: "计划定时任务", + test_plan_api: "计划API调用", api: "API调用", case: "用例触发" }, diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 96de257d27..1e5ec748de 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -239,6 +239,8 @@ export default { name: "觸發方式", manual: "手動觸發", schedule: "定時任務", + test_plan_schedule: "計劃定時任務", + test_plan_api: "計劃API調用", api: "API調用", case: "用例觸發" },