Skip to main content

How to Put Load on a Script in JMeter

In last post we discussed about how to record a test script and Firefox settings to run the script. In this post we will discuss about how the Thread Group will work, how can we put n number of users to perform load testing, In JMeter by using Thread Group, we can create virtual users.
Thread Group is a set of thread which work in same scenario. There are multiple thread group are available which is use to configure how the virtual users interest with the application, How much load maintain and till how much time load maintain.
Right Click on Test Plan -> Mouse hover on Add -> Mouse hover on Threads (Users) -> Click on Thread Group

Thread Group, Virtual users, Load Testing, Performance Testing, JMeter
As you can see in snapshot above that there are some Thread Group Properties which we need to understand

Number of Threads( Users) is total number of users ( Virtual users) performing the Test Script.
Ramp-Up Period means how much time to complete full number of threads in JMeter script. We can understand it with an example, if you have 100 users with a ramp-up period of 10 seconds, JMeter will take 10 seconds to get all 100 threads running, adding 1 threads per second.Means in first second 10 users will hit the server than in  next  second 10 more added means 20 users will hit the server. It means on 10th second all 100 users will hit the server.
Loop Count is number of execution of the script.  We can understand it with an example, if you have 2 loop count with 100 users than script will run 200 times. If user check forever then all times script will execute. If you want to stop your script at somewhere then you can check scheduler.
Scheduler will work like if i type 60 in duration in scheduler then this script will run until 60 second will complete.
Action to be taken after a Sampler Error means if any user failed then what step should be taken. There are various option you can see and you can choose as per your client requirement. 

Comments

  1. Nice article, it’s very informative content..thanks for sharing...Waiting for the next update.

    Use cases of Jira software
    what is Jira used for?

    ReplyDelete

Post a Comment

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.