fix(接口定义): 修复环境变量优先于场景变量的缺陷 (#18054)
--bug=1016781 --user=王孝刚 【接口测试】github#17873,最新版本环境变量优先级大于了场景变量 https://www.tapd.cn/55049933/s/1246281 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
d18dad79ec
commit
be1adf74ee
|
@ -849,8 +849,8 @@ public class ElementUtil {
|
|||
}
|
||||
});
|
||||
// 清空变量,防止重复添加
|
||||
config.getConfig().get(projectId).getCommonConfig().getVariables().remove(constants);
|
||||
config.getConfig().get(projectId).getCommonConfig().getVariables().remove(variableList);
|
||||
config.getConfig().get(projectId).getCommonConfig().getVariables().removeAll(constants);
|
||||
config.getConfig().get(projectId).getCommonConfig().getVariables().removeAll(variableList);
|
||||
}
|
||||
|
||||
if (arguments.getArguments() != null && arguments.getArguments().size() > 0) {
|
||||
|
|
Loading…
Reference in New Issue