fix(接口测试): 修复一个场景集成有未执行请求问题

This commit is contained in:
fit2-zhao 2022-03-23 18:57:38 +08:00 committed by fit2-zhao
parent 34c15e4ef0
commit 246d77fcea
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ public class MsScenario extends MsTestElement {
el.setParent(this);
el.setMockEnvironment(this.isMockEnvironment());
if (this.isEnvironmentEnable()) {
newConfig.setScenarioId(config.getScenarioId());
newConfig.setReportType(config.getReportType());
el.toHashTree(scenarioTree, el.getHashTree(), newConfig);
} else {
el.toHashTree(scenarioTree, el.getHashTree(), config);