Performance Testing is crucial to determine that the web application under test will satisfy high load requirements. It can be used to analyze overall server performance under heavy load.
Apache JMeter testing tool offers following benefit in Performance Testing
- JMeter can be used to test the performance of both static resources such as JavaScript and HTML, as well as dynamic resources, such as JSP, Servlets, and AJAX.
- JMeter can discover maximum number of concurrent users that your website can handle
- JMeter provides a variety of graphical analyses of performance reports.
JMeter Performance Testing includes:
- Load Testing: Modeling the expected usage by simulating multiple user access the Web services concurrently.
- Stress Testing: Every web server has a maximum load capacity. When the load goes beyond the limit, the web server starts responding slowly and produce errors. The purpose of the Stress Testing is to find the maximum load the web server can handle.
The figure below shows how JMeter load Testing simulates the heavy load:
Create a Performance Test Plan in JMeter
In this tutorial, we are doing a performance analysis of Google.com for 1000 users
Before testing the performance of target web application, we should determine-
- Normal Load: Average number of users visit your website
- Heavy Load: The maximum number of users visit your website
- What is your target in this test?
Here is the roadmap of this practical example
Step 1) Add Thread Group
- Start JMeter
- Select Test Plan on the tree
- Add Thread Group
Right click on the "Test Plan" and add a new thread group: Add -> Threads (Users) -> Thread Group
In the Thread Group control panel, enter Thread Properties as follows:
- Number of Threads: 100 (Number of users connects to the target website: 100)
- Loop Count: 10 (Number of time to execute testing)
- Ramp-Up Period: 100
The Thread Count and The Loop Counts are different.
Ramp-Up Period tells JMeter how long to delay before starting the next user. For example, if we have 100 users and a 100-second Ramp-Up period, then the delay between starting users would be 1 second (100 seconds /100 users)
Step 2) Adding JMeter elements
Now we determine what JMeter elements in this test. The elements are
HTTP request Default
This element can be added by right-clicking on the Thread Group and selecting: Add -> Config Element -> HTTP Request Defaults.
In the HTTP Request Defaults control panel, enter the Website name under test (http://www.google.com)
HTTP Request
Right-click on Thread Group and select: Add -> Sampler -> HTTP Request.
In HTTP Request Control Panel, the Path field indicates which URL request you want to send to Google server.
For example, if you enter "calendar" in Path field. JMeter will create the URL request http://www.google.com/calendar to Google server
If you keep the Path field blank JMeter will create the URL request http://www.google.com to Google server.
In this test, you keep the Path field blank to make JMeter create the URL request http://www.google.com to Google server.
Step 3) Adding Graph result
JMeter can show the test result in Graph format.
Right click Test Plan, Add -> Listener -> Graph Results
Step 4) Run Test and get the test result
Press the Run button (Ctrl + R) on the Toolbar to start the software testing process. You will see the test result display on Graph in the real time.
The picture below presents a graph of a test plan, where we simulated 100 users who accessed on website www.google.com.
At the bottom of the picture, there are the following statistics, represented in colors:
- Black: The total number of current samples sent.
- Blue: The current average of all samples sent.
- Red: The current standard deviation.
- Green: Throughput rate that represents the number of requests per minute the server handled
Let analyze the performance of Google server in below figure.
To analyze the performance of the web server under test, you should focus on 2 parameters
- Throughput
- Deviation
The Throughput is the most important parameter. It represents the ability of the server to handle a heavy load. The higher the Throughput is, the better is the server performance.
In this test, the throughput of Google server is 1,491.193/minute. It means Google server can handle 1,491.193 requests per minute. This value is quite high so we can conclude that Google server has good performance
The deviation is shown in red - it indicates the deviation from the average. The smaller the better.
Let compare the performance of Google server to other web servers. This is the performance test result of website http://www.yahoo.com/ (You can choose other websites)
The throughput of a website under test http://www.yahoo.com is 867.326/minutes. It means this server handle 867.326 requests per minute, lower than Google.
The deviation is 2689, much higher than Google (577). So we can determine the performance of this website is less than a Google server.
NOTE: The above values depend on several factors like current server load at Google, your internet speed, your CPU power etc. Hence, it's very unlikely that you will get the same results as above.
Good post.....I appreciate yor way of writing that make the blog attractive and make reader to hold longer to your blog. Thank you for sharing.Performance testing services is a highly specialized field of testing.
ReplyDeleteVery useful post and I think it is rather easy to see from the other comments as well that this post is well written and useful. I bookmarked this blog a while ago because of the useful content and I am never being disappointed. Keep up the good work..
ReplyDeletesoftware testing company
QA Outsourcing Sevices
Thanks for Sharing Information to us. If Someone wants to know about software testing and QA Services this is the Right place for you!
ReplyDeleteSoftware Testing Services
Software Testing Services in USA
Software Testing Companies in USA
Software Testing Company
QA Testing Services
QA Software Testing Services
QA Testing Companies in USA
Functional Testing Services
Test Automation Services
Functional Testing Company
Performance Testing Services
Wonderful Post.
ReplyDeleteManual Testing Training in Chennai
QTP Training in Chennai
Selenium Training in Chennai
SoapUI Training in Chennai
Software Testing Training in Chennai
Keep on making such important blog post.Your work is really being appreciated by someone.A very nice information blog...
ReplyDeleteSoftware Testing Services
Software Testing Company
Software Testing Companies in USA
QA Testing Companies
Software Testing Services in USA
Thanks for Sharing Information to us. If Someone wants to know about software testing and QA Services this is the Right place for you!
ReplyDeleteSoftware Testing Services
Software Testing Services in India
Software Testing Companies in India
Software Testing Services in USA
Software Testing Companies in USA
Software Testing Companies
Software Testing Services Company
QA Testing Companies
This really is my first time i visit here. I discovered so many entertaining stuff in your blog, especially its discussion. From a great deal of comments in your articles, I guess I am not alone having all of the leisure here! Maintain the superb work.It is very useful who is looking for QA Testing Services
ReplyDeleteThanks for sharing this post and the efforts you have made in writing this. If you have more info about Software testing companies, please share. Good to see such nice articulated post.
ReplyDeleteThanks for sharing this post and the efforts you have made in writing this. If you have more info about Software testing companies, please share.
ReplyDeleteNice Blog, When I was read this blog, I learnt new things & it’s truly have well stuff related to developing technology, Thank you for sharing this blog. Need to learn software testing companies, please share. It is very useful who is looking for
ReplyDeleteLow code automation platform
Mobile Testing Services
QA Services
I got wonderful information from this blog. I enjoyed your blog... the way you presented is really awesome... Thanks for sharing with us...If someone wants to know about load testing services this is the right place for you.
ReplyDeleteI got wonderful information from this blog. I enjoyed your blog... the way you presented is really awesome... Thanks for sharing with us...If someone wants to know about load testing services this is the right place for you.
ReplyDeleteThis blog will help to get more ideas. This is very helpful for Software Testing learners. Thank you for sharing this wonderful site. If someone wants to know about Software QA services this is the right place for you Software QA Companies. Visit here
ReplyDelete21 CFR Part 11 Compliance Testing
HIPAA Validation Services
Pci Compliance Testing services
Nice Post Oracle Cloud Automated Testing Tool
ReplyDeleteNice blog..clearly explained…Thankyou so much for your wonderful information…Looking for the best testing and performance tools in Hyderabad contact cyanous software solutions now.
ReplyDeleteBest testing and performance tools in Hyderabad
Best software & web development company in Hyderabad
Hi,
ReplyDeleteThank you so much for sharing about Load testing solutions. MMO now offers a range of Seaflex and Water Weights bags from Unique Group designed to test everything from crane load testing to flight deck elevators and from bridges to lifeboats, providing a solution for virtually marine load testing challenges.