
You can do this by using JMeter Scheduler: In Thread Group tick the Scheduler and set the value as below: Start Time and End Time: No need to input. Kindly follow the below these info for scheduling timer for a Jmeter script. Scheduler is used to Remotely or a scheduled run of a test script. When the test is started, JMeter will wait if necessary until the start-time has been reached. Click the checkbox at the bottom of the Thread Group panel to reveal extra fields in which you can enter the start and end times of the run. Version 1.9 introduces a test run scheduler. We need to configure Duration (in seconds) and Startup Delay (in seconds) to control the duration of each thread group.

We just need to check Scheduler checkbox which is available at the bottom of the Thread Group. JMeter provides an option to run test plan for specified amount of time using scheduler configuration in Thread Group. The Once Only Controller will now execute always during the first iteration of any looping parent controller. The Once Only Logic Controller tells JMeter to process the controller(s) inside it only once per Thread, and pass over any requests under it during further iterations through the test plan. In above jmeter Image, you can see we specify loop count = 3 only for Add connection. In above jmeter image, you can see user is logged in only 1 time (only once controller), Add Connection API is call three times (using loop controller), transaction history is called multiple times but not consecutively. As you have 10 threads each of 10 threads will execute the requests once.Ĭontroller to run its children once per cycle. So each your Thread will execute Once Only Controller's children only once, no matter how many loops your thread group will have. In Image 3 which does not use any logic controller, the number of http requests made is 15.

In the example shown below, the Thread Group has a loop count of 5 and Once Only controller contains Changes Request Sampler.

The Once Only Controller will make its child samplers run only once per thread i.e.
