Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Delay between HTTP requests which is from a CSV file

I’m using JMeter. I have a thread group that pulls multiple parameters from a CSV file and makes HTTP requests. I want each request to have 3 seconds in between. I tried to use constant timer, but it sends one request and stops. How can I do this?

My CSV file has 8073 lines. Each line is one request.

This is what my thread group looks like:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thread Group
    CSV Data Set Config
    HTTP Request
    Save Responses to a File
    View Results Tree 

>Solution :

If you want delay before each request – add a Constant Timer like:

enter image description here

if you want delay after each request – add Flow Control Action sampler like:

enter image description here


With regards to your "sends one request and stops" behaviour, by default Thread Group makes only one "iteration":

enter image description here

you either need to change this 1 to 8073 or just tick "Infinite" box and configure CSV Data Set Config to stop when it reaches the end of the CSV file:

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading