fix(测试计划): 修改计划报告触发方式

This commit is contained in:
shiziyuan9527 2021-08-17 17:44:15 +08:00 committed by 刘瑞斌
parent 27b9768f21
commit c25f2bb8f9
2 changed files with 3 additions and 0 deletions

View File

@ -1001,6 +1001,8 @@ public class TestPlanService {
performanceRequest.setTestPlanLoadId(caseID); performanceRequest.setTestPlanLoadId(caseID);
if (StringUtils.equals(ReportTriggerMode.API.name(), triggerMode)) { if (StringUtils.equals(ReportTriggerMode.API.name(), triggerMode)) {
performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_API.name()); performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_API.name());
} else if (StringUtils.equals(ReportTriggerMode.MANUAL.name(), triggerMode)) {
performanceRequest.setTriggerMode(ReportTriggerMode.MANUAL.name());
} else { } else {
performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name()); performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name());
} }

View File

@ -499,6 +499,7 @@ export default {
param.testPlanId = this.currentPlanId; param.testPlanId = this.currentPlanId;
param.projectId = getCurrentProjectID(); param.projectId = getCurrentProjectID();
param.userId = getCurrentUserId(); param.userId = getCurrentUserId();
param.triggerMode = 'MANUAL';
this.result = this.$post('test/plan/run/', param,() => { this.result = this.$post('test/plan/run/', param,() => {
this.$success(this.$t('commons.run_success')); this.$success(this.$t('commons.run_success'));
}, () => { }, () => {