1

I want to hit an API with different data that will be fetched from a CSV and this data will be hit one at a time after every second.

What I did is that used CSV data config to upload data and in thread group I added 30 and in ramp-up I added 30 as well so that after every 1 second an API hit is made. Is this the correct configuration?

1 Answer 1

2

If you want to limit JMeter execution rate to 1 request per second consider adding either Precise Throughput Timer

enter image description here

or Throughput Shaping Timer:

enter image description here

With regards to the number of threads - it depends on your application response time. If it is 1 second or less - 1 thread will be sufficient. If it's 2 seconds - you will need 2 threads, etc. You can also consider using Concurrency Thread Group which can be connected to the Throughput Shaping Timer via Feedback Function so JMeter will be able to kick off more threads if the current amount is not sufficient in order to run the requests at "1 request per second" rate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.