fix(接口定义): 修复场景不加请求头执行报错的缺陷

This commit is contained in:
wxg0103 2023-02-16 15:16:34 +08:00 committed by wxg0103
parent bb340d9c54
commit 0cd40db564
1 changed files with 3 additions and 1 deletions

View File

@ -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())) {