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

How to take the Screenshot in Selenium WebDriver?

If we want to take the screenshot then we have to convert our WebDriver object into the screenshot object. we need to change the behavior of the drive to take the screenshot . We can do it by casting

JMeter Overview Description

In this article we will go through the multiple section of JMeter and describe the tool information. we will discuss about every component of JMeter tool in this Article so that you can hands on while working on script on JMeter about these components.