fix(测试跟踪): 修复测试计划执行选择环境组后没生效的缺陷

--bug=1018939 --user=王孝刚 【测试跟踪】测试计划执行,选择环境组后没生效
https://www.tapd.cn/55049933/s/1278687
This commit is contained in:
wxg0103 2022-10-26 17:11:42 +08:00 committed by f2c-ci-robot[bot]
parent 5a3dd75415
commit d60c983422
1 changed files with 1 additions and 1 deletions

View File

@ -1518,7 +1518,7 @@ public class TestPlanService {
if (StringUtils.equals(envType, "JSON") && !envMap.isEmpty()) { if (StringUtils.equals(envType, "JSON") && !envMap.isEmpty()) {
runModeConfig.setEnvMap(testplanRunRequest.getEnvMap()); runModeConfig.setEnvMap(testplanRunRequest.getEnvMap());
this.setPlanCaseEnv(testPlanId, runModeConfig); 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()); runModeConfig.setEnvironmentGroupId(testplanRunRequest.getEnvironmentGroupId());
this.setPlanCaseEnv(testPlanId, runModeConfig); this.setPlanCaseEnv(testPlanId, runModeConfig);
} }