fix(接口测试): 修复测试计划接口场景运行环境显示错误问题
--bug=1023758 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001023758
This commit is contained in:
parent
251b23cceb
commit
ea64ee2cba
|
@ -321,10 +321,9 @@ public class ApiScenarioExecuteService {
|
|||
}
|
||||
//对报告的envMap做过滤,过滤多余的key
|
||||
Map<String, String> diffEnvMap = new HashMap<>();
|
||||
Map<String, String> envMap = runModeConfig.getEnvMap();
|
||||
planEnvMap.forEach((k, v) -> {
|
||||
if (envMap != null && envMap.get(k) != null) {
|
||||
diffEnvMap.put(k, envMap.get(k));
|
||||
if (StringUtils.equals(planApiScenario.getProjectId(), k)) {
|
||||
diffEnvMap.put(k, v);
|
||||
}
|
||||
});
|
||||
runModeConfig.setEnvMap(diffEnvMap);
|
||||
|
|
Loading…
Reference in New Issue