How to do load/performance testing both on static and dynamic resources by Apache JMeter


The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behaviour and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions. Details

Requirement:
1. Windows PC
2. Apache Jmeter

Let’s discussed in more details:

Start the jmeter from */*/bin/jmeter.bat. Where * indicate the your dir in windows.
A window will appear with title bar Apache jmeter.










Add the Thread Group
Right click on the Test Plan > Add > Threads (User) > Thread Group









Change the value under grid Thread Properties
Number of Threads (users) = as per your network bandwidth support or hardware. e.g. 10 or 100 or 1000. I’m performing for 10 users

Add HTTP Request Defaults
Right click on Thread Group > Add > Config Element > HTTP Request Defaults
Server Name or IP: google.co.uk or google.com
Path: /










Add HTTP Request
Right click on Thread Group > Add > Sampler> HTTP Request
Click on the Add Buton under Parameters tabs, add the value Name: #q and Value www.tutorialbyexample.com and click on the Encoded? Checked.

















Add the Listener, Aggregate Graph, Aggregate Report, 


















Click on the Test plan and Save it.

Run the Test plan

Click on the Test Plan and from Run menu select Run.




















Just change the Thread Group value for Number of Threads (users) as pre your requirement and parameter.

Don’t hesitate for any query related to this, I’ll more than happy to answered if any.

Please like and share it!!!

Reference:
https://jmeter.apache.org/ 

No comments:

Post a Comment