From 4c0b392c1ba2889981ce733689a9e1d7d21d03eb Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 22 Dec 2021 19:11:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B5=84=E6=BA=90=E6=B1=A0=E5=B9=B6=E8=A1=8C?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009162 --user=赵勇 【接口测试】测试计划,定时任务,k8s / local资源池执行,并行,接口测试一直running https://www.tapd.cn/55049933/s/1085568 --- .../metersphere/api/exec/api/TestPlanApiExecuteService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/main/java/io/metersphere/api/exec/api/TestPlanApiExecuteService.java b/backend/src/main/java/io/metersphere/api/exec/api/TestPlanApiExecuteService.java index a1ec72b6b0..708e7bb2f3 100644 --- a/backend/src/main/java/io/metersphere/api/exec/api/TestPlanApiExecuteService.java +++ b/backend/src/main/java/io/metersphere/api/exec/api/TestPlanApiExecuteService.java @@ -136,8 +136,13 @@ public class TestPlanApiExecuteService { JmeterRunRequestDTO runRequest = new JmeterRunRequestDTO(testPlanApiCase.getId(), reportId, request.getTriggerMode(), hashTree); if (request.getConfig() != null) { runRequest.setPool(GenerateHashTreeUtil.isResourcePool(request.getConfig().getResourcePoolId())); + runRequest.setPoolId(request.getConfig().getResourcePoolId()); } runRequest.setTestPlanReportId(request.getPlanReportId()); + runRequest.setReportType(executionQueue.getReportType()); + runRequest.setTestPlanReportId(request.getPlanReportId()); + runRequest.setRunType(RunModeConstants.PARALLEL.toString()); + runRequest.setQueueId(executionQueue.getId()); jMeterService.run(runRequest); } catch (Exception e) { executeErrorList.add(testPlanApiCase.getId());