From 887fe6e41a266e3b79587f1baff8752e8b14d99e Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Wed, 30 Oct 2024 11:33:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=EF=BC=8C?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=9C=BA=E6=99=AF=E6=8A=A5=E5=91=8A=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=B2=A1=E6=9C=89=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048341 --user=陈建星 【测试计划】-查看报告详情中的场景执行结果,报无资源权限 https://www.tapd.cn/55049933/s/1601665 --- .../plan/service/PlanRunTestPlanApiScenarioService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/PlanRunTestPlanApiScenarioService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/PlanRunTestPlanApiScenarioService.java index 01384d2e4e..b2804e5dc4 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/PlanRunTestPlanApiScenarioService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/PlanRunTestPlanApiScenarioService.java @@ -180,11 +180,10 @@ public class PlanRunTestPlanApiScenarioService { List apiReportRelateTasks = new ArrayList<>(); Map resourceReportMap = new HashMap<>(); - String projectId = ""; for (TestPlanReportApiScenario testPlanReportApiScenario : testPlanReportApiScenarios) { ApiScenario apiScenario = apiScenarioMap.get(testPlanReportApiScenario.getApiScenarioId()); // 初始化报告 - ApiScenarioReport apiScenarioReport = getScenarioReport(runModeConfig, testPlanReportApiScenario, projectId, userId); + ApiScenarioReport apiScenarioReport = getScenarioReport(runModeConfig, testPlanReportApiScenario, apiScenario.getProjectId(), userId); apiScenarioReport.setTestPlanScenarioId(testPlanReportApiScenario.getTestPlanApiScenarioId()); // 报告预生成,方便停止测试计划时直接更新报告状态 apiScenarioReport.setId(testPlanReportApiScenario.getApiScenarioExecuteReportId());