parent
7ee6a77d76
commit
54e7241715
|
@ -73,7 +73,7 @@ public class MsThreadGroup extends MsTestElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
//检查全局前后置脚本
|
//检查全局前后置脚本
|
||||||
if (preProcessor != null) {
|
if (preProcessor != null && StringUtils.isNotEmpty(preProcessor.getScript())) {
|
||||||
preProcessor.setType("JSR223Processor");
|
preProcessor.setType("JSR223Processor");
|
||||||
preProcessor.setName("PRE_PROCESSOR_ENV_"+preProcessor.isConnScenario());
|
preProcessor.setName("PRE_PROCESSOR_ENV_"+preProcessor.isConnScenario());
|
||||||
preProcessor.setClazzName("io.metersphere.api.dto.definition.request.processors.MsJSR223Processor");
|
preProcessor.setClazzName("io.metersphere.api.dto.definition.request.processors.MsJSR223Processor");
|
||||||
|
@ -83,7 +83,7 @@ public class MsThreadGroup extends MsTestElement {
|
||||||
el.toHashTree(groupTree, el.getHashTree(), config);
|
el.toHashTree(groupTree, el.getHashTree(), config);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (postProcessor != null) {
|
if (postProcessor != null && StringUtils.isNotEmpty(postProcessor.getScript())) {
|
||||||
postProcessor.setType("JSR223Processor");
|
postProcessor.setType("JSR223Processor");
|
||||||
postProcessor.setName("POST_PROCESSOR_ENV_"+preProcessor.isConnScenario());
|
postProcessor.setName("POST_PROCESSOR_ENV_"+preProcessor.isConnScenario());
|
||||||
postProcessor.setClazzName("io.metersphere.api.dto.definition.request.processors.MsJSR223Processor");
|
postProcessor.setClazzName("io.metersphere.api.dto.definition.request.processors.MsJSR223Processor");
|
||||||
|
|
Loading…
Reference in New Issue