Skip to main content

Multiple Users Login with JMeter

As i explained in my last post, we discussed about the Thread Group and we discuss about the different properties of the Thread Group. In this post we will understand how we will put load with multiple users and how we get the report of the multiple user request in different type of report format with the help of Listeners.

First add Non - Test Element ( we discussed in out last post)

Right Click on Test Plan -> Mouse hover on Add - > Mouse hover on Non Test Elements -> Select HTTP(S) Test script Recorder

Then Add Thread Group ( we discussed in out last post)

Right Click on Test Plan -> Mouse hover on Add -> Mouse hover on Threads (Users) -> Click on Thread Group

Now transfer the test script into the Thread Group from the HTTP(S) Test script Recorder by simply cut and paste windows shortcuts.



Thread Group, Virtual Users, Users, N Number of Users, Load Testing, JMeter, Performance Testing

Here i set 50 Virtual users hit the server in 10 seconds( Ramp - Up Period) means in 10th second all 50 user will hit the server

Now i need to get the output so i need to add Listener also in my test script. There are multiple type of listeners but for now i am adding only 3 which are most important to understand output. We need to add Listener in the Thread group so that that can listen the output. 


Right Click on Thread Group -> Mouse hover on Add -> Mouse hover on Listeners -> Click on View Result Tree

Right Click on Thread Group -> Mouse hover on Add -> Mouse hover on Listeners -> Click on Aggregate Report

Right Click on Thread Group -> Mouse hover on Add -> Mouse hover on Listeners -> Click on Graph Results



Listeners, Thread Group, Virtual Users, Users, N Number of Users, Load Testing, JMeter, Performance Testing

Now i will click on run button to play back the recorded script


Listeners, Thread Group, Virtual Users, Users, N Number of Users, Load Testing, JMeter, Performance Testing

You can see result in all Listeners. we will discuss about these out in my next post.



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).

Causes of Software Defects

It is practically impossible that developer develop a bug free software and that software we can deliver without Testing. If the complexity of the software increased then there must be bugs that can harm the users who will use that software.