fix(测试计划): 性能测试并行执行trigger_mode是null

This commit is contained in:
CaptainB 2023-04-11 11:03:42 +08:00 committed by 刘瑞斌
parent 11c65dd358
commit 11c850a766
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import io.metersphere.base.mapper.TestPlanLoadCaseMapper;
import io.metersphere.base.mapper.ext.BaseApiExecutionQueueMapper;
import io.metersphere.commons.constants.KafkaTopicConstants;
import io.metersphere.commons.constants.TestPlanLoadCaseStatus;
import io.metersphere.commons.constants.TriggerMode;
import io.metersphere.commons.utils.BeanUtils;
import io.metersphere.commons.utils.JSON;
import io.metersphere.constants.RunModeConstants;
@ -102,6 +103,8 @@ public class PerfQueueService {
RunTestPlanRequest request = new RunTestPlanRequest();
request.setTestPlanLoadId(executionQueue.getDetail().getTestId());
request.setReportId(executionQueue.getDetail().getReportId());
// 串行执行trigger_mode null
request.setTriggerMode(TriggerMode.BATCH.name());
try {
perfModeExecService.serial(request);
} catch (Exception e) {