From 97ef57f5295ee3bcdd5121303dbbb9e2d3440f94 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 26 Oct 2022 17:11:42 +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=80=89=E6=8B=A9=E7=8E=AF=E5=A2=83=E7=BB=84=E5=90=8E?= =?UTF-8?q?=E6=B2=A1=E7=94=9F=E6=95=88=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=1018939 --user=王孝刚 【测试跟踪】测试计划执行,选择环境组后没生效 https://www.tapd.cn/55049933/s/1278687 --- .../main/java/io/metersphere/plan/service/TestPlanService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java index fe3c24bcff..379d41e136 100644 --- a/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java +++ b/test-track/backend/src/main/java/io/metersphere/plan/service/TestPlanService.java @@ -1518,7 +1518,7 @@ public class TestPlanService { if (StringUtils.equals(envType, "JSON") && !envMap.isEmpty()) { runModeConfig.setEnvMap(testplanRunRequest.getEnvMap()); this.setPlanCaseEnv(testPlanId, runModeConfig); - } else if (StringUtils.equals(envType, "JSON") && StringUtils.isNotBlank(environmentGroupId)) { + } else if (StringUtils.equals(envType, "GROUP") && StringUtils.isNotBlank(environmentGroupId)) { runModeConfig.setEnvironmentGroupId(testplanRunRequest.getEnvironmentGroupId()); this.setPlanCaseEnv(testPlanId, runModeConfig); }