How to use JMeter Constant Throughput Timer

Posted By : Aditi Nahar | 02-Jan-2018

In simple test plan, requests send by JMeter to the application is continuous i.e. one after the other. But in the real scenario, there is always a time interval (milliseconds) between the requests. Thus to check the application with a particular number of requests per minute we can use the JMeter element named 'Constant Throughput Timer'.
During testing, it is required that a load of particular throughput need to be sent to the application. In that case, this timer can be used to achieve the result.
Implementing this timer in test plan is very simple and easy. It can be added under controller with the path --> Right click on Controller > Add > Select Timer > Constant Throughput Timer.

 

Now let's see a sample JMeter test plan which uses Constant Throughput Timer to execute 10 requests per minute:

Step 1
Following configurations done in Threads groups:
Number of threads - 1, Ramp up period - 1 and Loop Count - Forever

 

Step 2
Constant Throughput Timer added
withthroughtput = 10 and Calculate Throughput based on = all active threads. This implies per minute 10 requests will be executed.


Step 3
Now check the time difference between the 1st sample and 11th sample, it is 1 minute. This shows the desired result of hitting 10 samples per minute is successfully achieved.

 

Thanks

Happy Testing!!

Related Tags

About Author

Author Image
Aditi Nahar

Aditi is a certified QA Engineer with a strong command over management tool sets like JIRA and Trello, as well as QA tool sets for API and performance testing. She possesses excellent verbal and written communication skills and has gained valuable experience in management and leadership while collaborating with clients and large teams. Aditi's ability to apply creative thinking and problem-solving skills makes her adept at handling challenging business scenarios. Her proficiency in manual testing has proven instrumental in identifying issues and ensuring the functionality of applications across web, mobile, and TV platforms. She has made significant contributions to both internal and client projects, including Bits2Btc, AUS-BTC, EZBitex, ACL EAP, Scaffold, Iron Systems VRP, Oremus Zoho, and NOWCAST OTT.

Request for Proposal

Name is required

Comment is required

Sending message..