How To Load Test TCP Protocol Services With JMeter
How To Load Test TCP Protocol Services With JMeter
To output the TCP Response packet number to the system log and to
assert against the text Packet in each response, add a BeanShell
PostProcessor, Regular Expression Extractor elements, and an
assertion.
This assertion asserts each response, that they contain string about
packet number. The pattern, that is used is Packet \d\d.
As you can see, you can work with the TCP sampler by using JMeter-
provided implementations. If you need to use more specific processing
algorithms for communications over TCP, you may implement them
in your own class. All that you need is to extend your class from an
existing class, for example from BinaryTCPClientImpl class, implement
what you need and then insert the name of the created class to the
TCP client class name field of the TCP sampler.