Jmeter Test Plan for Load Testing
Posted By : Ravindra Jha | 03-Mar-2014
Getting Started With Jmeter Sample Load Testing
This blog will let you to create a sample test plan for “Oodlestechnologies.com”.While Reading This Blog you should have the basic understanding of Jmeter Test Plan elements and it configuration. If you are completely fresh to jmeter just visit the Link Jmeter Configuration and Follow the steps mentioned below.
-
Click Add button and create a user defind variable which we will use in a short while
Name:- site
Value:-Oodlestechnologies.com
-
Right click on node Oodlestechnologies Test Plan > Add >Thread(users)>Thread Group
-
Fill all its properties like
Name-Oodlestechnologies User
Comment-Visiting Home Page
*leave all other properties as default
-
Right click Oodlestechnologies User > Config Elements > HTTP Cache Manager
*leave its properties as default
-
Right click Oodlestechnologies User > Config Elements> HTTP Cookie Manager
*leave its properties as default
-
Right click Oodlestechnologies User > Sampler> HTTP Request
Name-Oodlestechnologies Home Page
Comments-HTTP request for Oodlestechnologies Home Page
Server Name or Ip-${site}
* site is the user defined variable created with test plan
*leave all other field as default
-
Right click Oodlestechnologies User > Listener> View result Tree
-
From the Run menu click Start and go to the View Result Tree, wait for few Seconds
-
Select the Green Node in View result Tree
-
Response Message: OK confirms the success
-
Select Response Data
-
The above page confirms the success
-
Create another Sampler > HTTP Request
Name- Oodlestechnologies ContactUs page
Comments-creating another HTTP request
Server Name or IP-${site}/site/contactus
-
Add another Listener for this request
-
Again Run>Start the test plan and in Oodlestechnologies ContactUs page response Data confirms the further success
from the above listener you have seen that the two request for home page and contact us page fires almost together, This seems unrealistic
So we will use Timer to add some delay between two request
-
Right click the Oodlestechnologies User > Timer > Constant Timer after first request
-
Clear the view result Ctrl+E
-
Oodlestechnologies User Thread increase the number and ranp up time to 5 and execute the test plan
-
By increasing the number of Threads will increase the users on that page, in similar way you can create test plan with request for every page and analyze the results will give you the load on your site.
Thanks.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Ravindra Jha
Ravindra is a seasoned Java and Grails lead developer with excellent experience in deployment , monitoring , optimisation of web applications for scalability and performance on Amazon EC2 and other Amazon Web Services.