Trying TCP sampler for sending text message to server over TCP and expecting response ack for the same. getting request success.but response data is blank(expecting response acknowledgment).
0
votes
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: stackoverflow.com/help/mcve
- Kiril S.
1 Answers
0
votes
Given you have connection established already it automatically means that JMeter has received SYN-ACK from the AUT (application under test) and it has received ASK from JMeter.
- JMeter a TCP SYNchronize packet to AUT
- AUT receives JMeter's SYN
- AUT sends a SYNchronize-ACKnowledgement
- JMeter receives AUT SYN-ACK
- JMeter sends ACKnowledge
- AUT receives ACK
Java doesn't have raw sockets support, neither does JMeter so if you want to fully control TCP messages flow and be able to see the headers and flags - you will need to go a level deeper using i.e. jNetCap library from JSR223 Test Elements.
You might also be interested in How to Load Test TCP Protocol Services with JMeter article which explains how you can test your TCP server performance with JMeter and HTTP Raw Request sampler easier to use than JMeter's TCP Sampler