I am new to Jmeter and want to test one XML request over TCP.
How can I achieve that. I search for any help but did not get that.
Thanks in advance.
You may want to search for "JMeter TCPSampler". You will find several questions on Stackoverflow as well as a quite comprehensive blog post: https://www.blazemeter.com/blog/how-load-test-tcp-protocol-services-jmeter/
This TCP Sampler can send arbitrary text to the server, however, the challenge is how to determine the end of a response message. There are a few options available, e.g. based on message length prefix (see LengthPrefixedBinaryTCPClientImpl), or a unique end character (see TCPClientImpl).
However, if none of those work, you may want to implement a custom TCPClient class that could for example detect the closing tag of your XML response.
1.4m articles
1.4m replys
5 comments
57.0k users