fix(接口定义): 修复场景不加请求头执行报错的缺陷
This commit is contained in:
parent
bb340d9c54
commit
0cd40db564
|
@ -144,7 +144,9 @@ public class MsScenario extends MsTestElement {
|
|||
|
||||
if (config != null && StringUtils.equals(this.getId(), config.getScenarioId())) {
|
||||
config.setTransferVariables(this.variables);
|
||||
setHeader(scenarioTree, this.headers);
|
||||
if (CollectionUtils.isNotEmpty(this.headers)) {
|
||||
setHeader(scenarioTree, this.headers);
|
||||
}
|
||||
}
|
||||
|
||||
if (config != null && !config.getExcludeScenarioIds().contains(this.getId())) {
|
||||
|
|
Loading…
Reference in New Issue