Roman T.
Roman T.

Reputation: 11

how to create delay between groups of requests in jmeter?

I'm trying to implement the following in jmeter: send 100 identical requests, wait for 1 minute, send the same requests again...for 30 min. I can't add delay/waiter/pause between groups of requests in jmeter. Timers don't work since they introduce those pauses between requests, not groups of requests. Any ideas?

Upvotes: 1

Views: 2441

Answers (2)

Ori Marko
Ori Marko

Reputation: 58772

Timers obey JMeter's Scoping rules:

Some elements in the test trees are strictly hierarchical (Listeners, Config Elements, Post-Processors, Pre-Processors, Assertions, Timers)

You need to put Timer under Flow Control Action (was: Test Action ) Which will be after 100 requests

For variable delays, set the pause time to zero, and add a Timer as a child.

Upvotes: 1

Dmitri T
Dmitri T

Reputation: 168072

  1. Add Test Action sampler and configure it like:

    JMeter Test Action

  2. Add Synchronizing Timer as a child of the Test Action sampler and configure it as follows:

    JMeter Synchronizing Timer

The synchronizing timer will act as a "rendezvous" point when all threads will "meet" and wait together for 60 seconds prior to moving on.

Upvotes: 1

Related Questions