Skip to main content

JMeter First Script to check the Performance

Now suppose i want to check the performance of any website then following will be the procedure to check the basic performance test.



Let me start from the first UI which is showing below

JMeter, Automation Testing, Performance Testing, Test Plan UI

In the JMeter , you just need to write the name which you want and when you switvh the window , it will save automatically. You do not need to CTRL+s to save anything.
Right Click on the "Test Plan -> Add -> Threads (Users) -> Thread Group"
Following window will open

JMeter, Automation Testing, Performance Testing, Test Plan UI

In this window let me explain you about some points

  • Thread related to the Users
  • Name: In name ewe van put any name related to the Thread
  • Number of Threads: In this field you can put any number of users to check the performance of the system. default value is 1 user.
  • Ramp-Up Period: In this you can put the value in which you want your total number of users start execution. default value is 1 sec. 
  • Lop Count: You can put any value in Loop Count field as you want your each user will execute the web page. Means suppose you are using 2 as Loop count number and suppose you have 4 users then each users will execute 2 times the web page. 
JMeter, Automation Testing, Performance Testing, Test Plan UI
Now Right Click on Home Page (Thread Group) from left Panel 

Add-> Sampler-> HTTP Request

then following window will show
JMeter, Automation Testing, Performance Testing, Test Plan UI, Sampler, Sending Request

In jMeter, we call request send to sever is Sampler. 

Let me explain you regarding this new screen
  • Name: from here you can change the Sampler name
  • Server Name or IP: In this field you can write the URL name of the website which you want to check the performance. here please do not provide the http:// because JMeter pick http:// from itself. 
  • Path: Here you can provide the path which page you want to check in the above URL
JMeter, Automation Testing, Performance Testing, Test Plan UI, Sampler, Sending Request

Now Right click on "Home Page Request (HTTP request)"
Add -> Listener -> View Results in Table

then following window will show
JMeter, Automation Testing, Performance Testing, Test Plan UI, Listener

Listener is used to show the result. it may be a table format or in graphical format. Here i am showing you in table format.
Now you need to save this script . Please see the below image to see the icon.
JMeter, Automation Testing, Performance Testing

File extension of JMeter is .jmx. save it anywhere.

Now you need to run this script for this below you can see the image to the icon
JMeter, Automation Testing

When script is running then you will see that green icon in right side
JMeter, Automation Testing, Performance Testing

You can see the result and check the Average Perforce Time of response.








Comments

Popular posts from this blog

Why Jmeter is best option for Performance Testing?

There are multiple tools in market for performance testing of any software but Jmeter is the best solution among all of them due to some reason listed below 1) Jmeter is the open source application so users who use this application will not to pay anything. 2) You can use Jmeter for performance of any web application,  Databases and Web Services (REST and SOAP APIs). 3) Jmeter have the user friendly UI component so it is very easy to use. 4) Jmeter can be used to simulate to put maximum number of concurrent users on a server, network or object to test its strength or to analyze overall performance under different load types. 5) Jmeter also use for functional testing for static( JavaScript and HTML) and dynamic( JSP, Servlets and AJAX) resources. 6) Jmeter provides Verity of graphical representations for performance report so it is easy to understand.

How You Can Test Database?

Now we know the Database Testing which you can learn in my last article. In this article we will discuss about the steps that need to following to test any Database. Database Tester should have some basic knowledge regarding SQL Command like DDL (create/drop),  DML (Insert/Delete/Update) and DCL (Grant/Revoke).

Record and Play Back in JMeter

In this section we will discuss about how to record a Test script than how we can play back that script in the browser. First we develop a  a Test Script than put a load of suppose 100 users and than run the test script again with this load while Test executing than we are getting result in performance matrices that how the Test performing in different number of users.