fix: tcp脚本为空,不传脚本
This commit is contained in:
parent
00eadc527f
commit
55ed001b16
|
@ -82,7 +82,7 @@ public class MsTCPSampler extends MsTestElement {
|
|||
samplerHashTree.add(tcpConfig());
|
||||
tree.set(tcpSampler(config), samplerHashTree);
|
||||
setUserParameters(samplerHashTree);
|
||||
if (tcpPreProcessor != null) {
|
||||
if (tcpPreProcessor != null && StringUtils.isNotBlank(tcpPreProcessor.getScript())) {
|
||||
samplerHashTree.add(tcpPreProcessor.getJSR223PreProcessor());
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(hashTree)) {
|
||||
|
|
Loading…
Reference in New Issue