From 32da51121df6b16bf5ec6cc403e6f2722bcf946f Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 9 May 2023 12:53:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=89=87=E6=AE=B5=E7=A6=81=E7=94=A8=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【【接口测试】禁用本地执行后,项目设置里的自定义代码片段未使用资源池执行】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001026037 Signed-off-by: fit2-zhao --- .../io/metersphere/service/definition/FunctionRunService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api-test/backend/src/main/java/io/metersphere/service/definition/FunctionRunService.java b/api-test/backend/src/main/java/io/metersphere/service/definition/FunctionRunService.java index a330339655..aacaed59b5 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/definition/FunctionRunService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/definition/FunctionRunService.java @@ -5,7 +5,6 @@ import io.metersphere.api.dto.definition.request.processors.MsJSR223Processor; import io.metersphere.api.exec.api.ApiExecuteService; import io.metersphere.api.jmeter.JMeterService; import io.metersphere.commons.constants.ApiRunMode; -import io.metersphere.commons.constants.TriggerMode; import io.metersphere.commons.exception.MSException; import io.metersphere.commons.utils.GenerateHashTreeUtil; import io.metersphere.commons.utils.JSON; @@ -44,7 +43,7 @@ public class FunctionRunService { try { HashTree hashTree = apiExecuteService.getHashTree(request); JmeterRunRequestDTO runRequest = new JmeterRunRequestDTO(request.getId(), - request.getId(), ApiRunMode.DEBUG.name(), TriggerMode.MANUAL.name(), hashTree); + request.getId(), ApiRunMode.DEBUG.name(), hashTree); runRequest.setDebug(true); if (StringUtils.isNotEmpty(runModeConfigDTO.getResourcePoolId())) { runRequest.setPool(GenerateHashTreeUtil.isResourcePool(runModeConfigDTO.getResourcePoolId()));