简体   繁体   中英

How to send multiple hex data payload in the jmeter tcp sampler?

How to send multiple hex data payload in the jmeter tcp sampler in the same socket? The EOL Byte is not ending the payload and sending the two payloads as one payload. I want the two payloads to go one after another in the same connection established.

Given your scenario I believe it will be much easier to use HTTP Raw Request sampler with Keep-alive connection box checked, this way you will be able to send as many "payloads" (whatever it is ) as you need using a single socket connection.

You can install HTTP Raw Request sampler using JMeter Plugins Manager

JMeter HTTP原始请求采样器


Be aware that any JMeter limitation can be worked around using scripting so you should be able to implement whatever functionality you need using J SR223 Test Elements and Groovy language , check out Groovy Sockets example for reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM