Interface and dashboard OF JMETER.
In J meter there are two areas where the left side is Test Plan pane and the other right side has a window for test plan configuration.
Step 1) Create new test Plan.
Click on file<<New
Step 2) create a Thread Group
Thread Groups is a collection of Threads. Each thread represents one user using the application under test. Basically, each Thread simulates one real user request to the server.
The controls for a thread group allow you to Set the number of threads for each group.
For example, if you set the number of threads as 100; JMeter will create and simulate 100 user requests to the server under test
To Create thread group
Right click on test plan<<add<<thread(users)<<<thread group.
In thread window there is multiple fields
a) Number of thread : in this option we will enter the user for how many user we want to perform load testing.
b) Ramp-up priod: this is the duration in seconds when request will execute.
c) Loop Count: this the loop how many time request will execute.
Step 3) Create a Sampler
As we know already that JMeter supports testing HTTP, FTP, JDBC and many other protocols.
We already know that Thread Groups simulate user request to the server
But how does a Thread Group know which type of requests (HTTP, FTP etc.)
it needs to make?
The answer is Samplers
The user request could be FTP Request, HTTP Request, JDBC
Create a HTTP Request
In this step we will create a new https request to perform load testing on live url.
Right click on thread group<<add<<sampler<<HTTPS Request.
Options of HTTP Request and configuration Setting.
- Name : in this we can give the name of this Https Request.
- Server Name or IP : in this field we will give the ip address or URL of website for which we want to perform load testing.
- Port Number : in this field we can use port number but in our case we will not use any port number.
- HTTP Request Type : in this option we will select which type of request we want to perform during our load Testing.
- Path: in this when we want to perform the inner page testing so other than the server name we will enter the remain url details in this field.
- Parameters : this is the field if we are doing api testing so we can put the parameter in key : value format in this field.
For Example we will perform load Testing on our live website.so below are the details
URL = https://fidresi.com/
USER = 10
Ramp Up =1 second.
Loop Count =1
Step 4) Create a Listener
To record the result we need to add listener in this we can view our result and see the total time taken,status code,latency etc…
Right click on thread group<<add<<listener<<view result tree/summery report/in table.
We can add multiple listeners which we want to use in our load testing to see
In our case we will use view result tree and table.
Step 5) Start the Load Testing
Now we have set up the j meter for load testing we will start our load testing.
The test will execute after press start button,after press the start button the test will run for 10 user for 1 time because we have already set in configuration.
Step 6) Result of load Testing.
I have added two listeners in our load test so according to listener property the result will display in different format in this result we can notice the
1) Run time
3) Number of sample
6) Connected time
We can view these information about our load test.
Step 7) Load Test for inner page of website.
In this scenario now we will test the inner page of our live website and we will notice the test result.
URL = https://fidresi.com/aboutus/index.cfm
Number of users =10
Loop count = 1
Ramp Up =1 second.
For inner page of website we need to fill the url in the break form.
Server name or IP = fidresi.com
Path = /aboutus/index.cfm
Now we will Start our load test by press the start button. But before start our test we will clear the results for record new result.
We can also verify the result to select the result in html format.
So we can also the result of inner page of fidresi website..so we have successfully runned load testing on our live website fidresi.com