fix(接口测试): 修复全局前后置步骤内位置不对的问题
--bug=1040478 --user=宋天阳 【接口测试】github#29733, 全局前置脚本-单个请求步骤前执行,勾选为步骤前置后执行。实际全局前置脚本还是第一个执行的,不是在步骤前置后执行 https://www.tapd.cn/55049933/s/1517708
This commit is contained in:
parent
4b1cdb413e
commit
16851d8d1b
|
@ -1,6 +1,7 @@
|
||||||
package io.metersphere.api.dto.scenario.environment;
|
package io.metersphere.api.dto.scenario.environment;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.apache.commons.lang3.BooleanUtils;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -10,9 +11,17 @@ public class GlobalScriptConfig {
|
||||||
private List<String> filterRequestPreScript;
|
private List<String> filterRequestPreScript;
|
||||||
private List<String> filterRequestPostScript;
|
private List<String> filterRequestPostScript;
|
||||||
//是否在请求自有脚本之后再执行
|
//是否在请求自有脚本之后再执行
|
||||||
private boolean isPreScriptExecAfterPrivateScript;
|
private Boolean isPreScriptExecAfterPrivateScript;
|
||||||
private boolean isPostScriptExecAfterPrivateScript;
|
private Boolean isPostScriptExecAfterPrivateScript;
|
||||||
//是否统计到场景中
|
//是否统计到场景中
|
||||||
private boolean connScenarioPreScript;
|
private boolean connScenarioPreScript;
|
||||||
private boolean connScenarioPostScript;
|
private boolean connScenarioPostScript;
|
||||||
|
|
||||||
|
public boolean isPreScriptExecAfterPrivateScript() {
|
||||||
|
return BooleanUtils.isTrue(isPreScriptExecAfterPrivateScript);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isPostScriptExecAfterPrivateScript() {
|
||||||
|
return BooleanUtils.isTrue(isPostScriptExecAfterPrivateScript);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue