0

Is it possible with JMeter to send data on let's say port 8001 and then listen for a request on port 8002? Out application does not give a response but sends the data forward to another application, we need to test the throughput latency in the application.

basickarl
  • 37,187
  • 64
  • 214
  • 335

1 Answers1

0

This answer assumes TCP protocol and derivatives

  1. You can send TCP or HTTP request normally using an appropriate sampler like TCP Request or HTTP Request. Make sure to define reasonable timeouts otherwise JMeter will wait for the response forever (or at least as long as underlying OS allows).

    Of course when the timeout occurs the Sampler will be marked as failed, however you can tell JMeter to consider it successful by adding a Response Assertion as its child and ticking Ignore Status box

  2. With regards to "listen for a request" - out of box there are no test elements which would wait for incoming connections so you can do this using JSR223 Sampler and create a minimal TCP Server listening to the incoming connections and doing what needs to be done with the incoming requests

Dmitri T
  • 159,985
  • 5
  • 83
  • 133