Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

Performance testing xml over TCP using JMeter

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.

question from:https://stackoverflow.com/questions/65859830/performance-testing-xml-over-tcp-using-jmeter

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...