fix: 修复测试计划执行性能测试时 trigger_mode 对应不上的问题

This commit is contained in:
CaptainB 2021-11-18 15:50:12 +08:00 committed by 刘瑞斌
parent 6ae55cfa84
commit 91c62328fc
1 changed files with 2 additions and 2 deletions

View File

@ -1127,11 +1127,11 @@ public class TestPlanService {
performanceRequest.setId(caseID);
performanceRequest.setTestPlanLoadId(id);
if (StringUtils.equals(ReportTriggerMode.API.name(), triggerMode)) {
performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_API.name());
performanceRequest.setTriggerMode(ReportTriggerMode.API.name());
} else if (StringUtils.equals(ReportTriggerMode.MANUAL.name(), triggerMode)) {
performanceRequest.setTriggerMode(ReportTriggerMode.MANUAL.name());
} else {
performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name());
performanceRequest.setTriggerMode(ReportTriggerMode.SCHEDULE.name());
}
String reportId = null;
try {