0
votes

I have a csv input file like this:

timestamp, request url
e.g: 20/Sep/2018:00:00:00, /posts/1

This file contains about 1.5 million likes this. Is it possible to make a load test in JMeter where I can schedule all of these requests by his timestamp, or set a delay between them, while iterate through requests. Furthermore, reuse a thread, if a thread is finished then get another request and send it ... repetaing it until all tasks are done. Actually I can read the path from csv, but can't use the timestamps, and reuse threads.

If JMeter is not suitable for this kind of task, could you recommend some other tool that can do this kind of work?

1

1 Answers

1
votes
  1. Take a look at Access Log Sampler - it is designed to replay production traffic using web/application server access logs

    Given your input file format is in line with what JMeter expects you should be able to replay the requests using single sampler. Check out Access log sampler Step-by-step guide for more details.

  2. If you will not be able to "feed" your file to JMeter's Access Log Sampler you can use some Groovy scripting in order to

    Check out Stop Making Assumptions! Learn How to Replay Your Production Traffic With JMeter article for example configuration implementation

  3. With regards to re-using threads - this is something JMeter does by default given you supply >1 Loop in Thread Group

    enter image description here

    in the above setup a single thread will execute the HTTP Request sampler 1000 times.