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

What is API?

In general way, API (Application Programming Interface) is the intermediate software which is useful for two applications to communicate. API is the tool which is used for interaction of two applications. If developer developing any software which have multiple blocks (Modules) than developer use APIs to put them together.

Smoke Testing

In Smoke Testing, Testing team check the key feature or key bugs of the software. Smoke testing ensure that critical functionality of the software is working fine.If key features are not working then it is no needed to test the overall functionality because it is just waste of time. In Smoke Testing, test team check the basic feature of the software and if basic feature is not working it means software is broken very badly and further testing is unnecessary. If Smoke Testing failed then it is declared that build is unstable and revert back to developer team until smoke test is pass.

Structural Testing

Structural Testing is the type of testing in which user should have the knowledge of the code because in this testing user need to check the structure of the system. Structural Testing is White Box Testing.