From 4f58c08791b3ed0b01fafa5695688981a920bcc6 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 20 Dec 2023 15:39:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=9D=9E=E5=BD=93=E5=89=8D=E9=A1=B9=E7=9B=AE=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=EF=BC=8C=E6=98=BE=E7=A4=BA=E8=B5=84=E6=BA=90=E6=B1=A0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1033761 --user=王孝刚 【测试跟踪】测试计划-接口非当前项目用例-操作-执行-资源池用未引用当前项目资源池 https://www.tapd.cn/55049933/s/1446202 --- .../io/metersphere/service/plan/TestPlanApiCaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java index 85b27a9393..fc2e8da9c1 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanApiCaseService.java @@ -827,7 +827,7 @@ public class TestPlanApiCaseService { String reportName = apiCase.getName(); ApiDefinitionExecResultWithBLOBs result = ApiDefinitionExecResultUtil.add(testId, ApiReportStatus.RUNNING.name(), reportId, Objects.requireNonNull(SessionUtils.getUser()).getId()); result.setName(reportName); - result.setProjectId(apiCase.getProjectId()); + result.setProjectId(SessionUtils.getCurrentProjectId()); result.setTriggerMode(TriggerMode.MANUAL.name()); RunModeConfigDTO runModeConfigDTO = new RunModeConfigDTO(); jMeterService.verifyPool(result.getProjectId(), runModeConfigDTO);