You can do this by using Scheduler:
In Thread Group tick the Scheduler and set the value as below:

Start and End : No need to input. keep them as they are, because they have no significant after entering Duration and Startup delay value. Delay overrides Start , and Duration overrides End .

For example, if you want to the for 2 min. Input the value as below:

Duration (seconds): 120
Startup delay (seconds): 0

enter image description here

Now it’s the time to run the test: Run -> Start



Source link https://sqa.stackexchange.com/questions/8378/how-to-run-jmeter-test--for-specified--of-time

LEAVE A REPLY

Please enter your comment!
Please enter your name here