How to Use Apache JMeter To Perform Load Testing on your web application

Performance and Load testing with Jmeter

Here we will perform the load and stress testing with the help of Jmeter on the web application. Here we apply the concurrent no of user on the web application and check the performance of the application. First of all we create the testing environment-

Now create the environment as step by step-

Step 1: Need below software

  • Apache JMeter – Download and run the .bat/.sh file from the bin folder.(.bat for window & .sh for Linux)
  • Java 6 or later – Download and proper installation of Java.

 Step 2: Add the Thread Group to Test Plan

  •  Right-click on Test Plan> Add > Threads (Users)

Test plan

Add Thread Group

Thread Group Thread Group -1

  • Number of Threads: 100 (Number of users to hit on website)
  • Ramp-Up Period: 100 (After 1 sec next user is hit on the server)
  • Loop Count: 1 (Number of time to execute this plan)

Thread Group -2

we have 100 users and a 100 second Ramp-Up period, then the delay between starting users would be 1 second (100 users /100 seconds)

Step 3: Add the HTTP Request Default

  • Right-click on Thread Group> Add > Config Element> HTTP Request Defaults
  • Enter the server Name or IP on which site you want to test the load and performance with the concurrent users.

HTTP Request Default
Step 4: Add the HTTP Request

  • Right-click on Thread Group> Add >Sampler> HTTP Request
  • Now enter the url on which page you want to navigate. 

HTTP RequestStep 5: Add the Listener as you want-

  • Aggregate Graph
  • Aggregate Report
  • View Result Tree
  • View Result in Table
  • Graph Result

 Step 6: Now save the Test Plan and Run it.

Save

RunStep 7: Now view the result from the listener-

Aggregate Graph
 Aggregate Graph

Aggregate Report-
 Aggregate Report

View Result Tree-

View Results Tree

View Result in Table-
 View Results in Table

Graph Result-

Graph Result

**************************************Complete*******************************

This article is useful for you …..

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s