Hannah
Hannah

Reputation: 27

Jmeter simulate users sending multiple HTTP requests

I have five different HTTP requests I require each thread to make. All five requests need to be made by the same thread in a given order, and ideally I'd like to set an average time between each request.

How can I do this in JMeter?

Upvotes: 0

Views: 421

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

  1. By default JMeter threads (virtual users) execute Samplers upside down so you basically can define the execution order by manipulating the order of Samplers under the Thread Group

    enter image description here

  2. If you want to introduce a fixed delay between requests add a Constant Timer at the same level as the requests

    enter image description here

    above configuration will result in adding a 5 seconds delay before each request. Also delay doesn't have to be fixed, you can use i.e. Uniform Random Timer or Gaussian Random Timer to closer simulate real users behavior as different users act at different speed therefore have different "think times". Check out A Comprehensive Guide to Using JMeter Timers article for more information on the Timers concept and detailed information on each and every timer available in JMeter.

Upvotes: 1

Related Questions