Different Response Port than Request - JMeter TCP Sampler

Viewed 25

I am using TCP Sampler in JMeter. I am trying to test a application which accept request on 5000 port but send response on 5001. How can we configure JMeter to accept response on different port than request?

1 Answers

Just use 2 TCP Samplers, one for sending the request and another one is for reading the response.

In order to avoid "endless" waiting for the response of the TCP Sampler which will send the request set the reasonable timeout

enter image description here

The sampler will appear as failed in the results, you can use Response Assertion to "expect" this failure and to mark the request as passed:

enter image description here

Related