JMeter API Testing - Recording the Incoming Traffic

411 views Asked by At

Using JMeter, the HTTP Request is hitting a URL with the port.

Eg : apitesting.com:8888/api/series/one

I have also added a HTTP Test Script Recorder in JMeter, where I can mention the port and domain.

How do I import the incoming traffic to JMeter using tcpreplay and JMeter Proxy for the above example.

Thanks for your help in Advance.

2

There are 2 answers

0
Dmitri T On

Have you read the FAQ?

Does tcpreplay support sending traffic to a server?

If by server you mean a daemon (Unix) or service (Windows) which listens on a port (a web or mail server would be common examples), then probably not. The biggest issue is that tcpreplay doesn't understand the state of common protocols like TCP. This means it is unable to synchronize Syn/Ack's to create valid TCP sessions.

So you have the following options:

In both cases be aware that you will get only a "skeleton" of the project, you won't be able to replay production traffic, all you will get would be a set of HTTP Request samplers, you will have to figure out the workload model on your own.

0
Ori Marko On

In JMeter you can add to your HTTP request a Post Processor Named Response Assertion, If you check the Ignore Status checkbox you will ignore response of the server so even if server is down it'll not fail test and continue.