Introduction
Web testing is a software procedure that assures software quality by examining if a web application's functionality functions as expected or in accordance with the requirements.
JMeter is a Java-only desktop application for load and performance testing that performs web testing. A timer, thread group, listener, and controller are some of the components that make up JMeter.

This blog will teach you more about the JMeter thread group component.
Building a Web Test Plan
An outline of the actions that a JMeter will perform is called a test plan. A JMeter web test plan consists of one or more components.
You will discover how to write a simple JMeter web test plan further in this blog on how to test websites.
The image given below is a picture of the sample test plan.

Adding Users
In each JMeter web test plan, the initial step should be to create a thread group element. The thread group gives JMeter instructions for the number of users to mimic, the number of requests each user should send, and the frequency at which they should send them.
The image provided below shows how to create a thread group.

A thread group panel opens up.

Start by giving the thread group a clearer name in the name field than the default one; only after that will the user be defined.

The ramp-up period box tells JMeter to use this attribute to determine how long to wait before starting for each user. JMeter is instructed on how often to repeat your test using the loop count field attribute.
Adding Default HTTP Request Properties
Specify the HTTP request defaults to determine the actions that they will take in a JMeter web test plan. The total HTTP requests are calculated as follows: (Number of Users) x (Number of Requests) x (number of times).
The image provided below shows how to create an HTTP request.

An HTTP request panel opens up. You may load test a web server by sending an HTTP request using the sampler JMeter HTTP Request.

Make changes only in the fields that are required, like the server name or IP.

Adding Cookie Support
All web testing in a JMeter web test plan should use cookie support unless your application specifically doesn't use cookies.
The image provided below shows how to create an HTTP cookie manager.

An HTTP cookie manager panel opens up. Similar to a web browser, the cookie manager saves and transmits cookies.

Adding HTTP Requests
We will send two HTTP requests as part of our JMeter web test plan. The home page is the name of the first HTTP request, and the changes page is the name of the second HTTP request. JMeter sends queries in the tree's order of appearance.

Put "Home Page" in the name field and "/" in the Path field.

Add the second HTTP request and make the changes required.

Adding Listener
This component gives a visual representation of the data and saves all of the responses in a file at our JMeter web test plan.
The image provided below shows how to create graph results.

A graph results panel opens up. Graph Results creates a graph between the response time and the total time. The graph lines display the average of response time, median response time, variance in response time, and the number of samples per minute for all queries.

Log in to the website
When logging in using a web browser, a form including the user name, password, and a submit button will be displayed. The button creates a POST request and includes arguments for the form elements.
For this, create an HTTP request and choose POST as the method in the JMeter web test plan. Set the submit button's target as the path('/').

The login and password information should be entered by clicking the Add button twice.

Same user/different users
When developing a JMeter web test plan, we can simulate the same user running many iterations or other users running a single iteration. "Same user on each iteration" will be checked by default.

Use Thread Group to control the Authorization Manager
The image provided below shows how to create an authorization manager.

An HTTP authorization manager panel opens up. JMeter web test plan handles browser authentication pop-up using this component.

Check the field “Use Thread Group configuration to control clearing." With the help of this option, you may specify if the new iteration involves the same user or a new one. It is tied to the Thread group's "Same user on each iteration" field.

We hope you have understood everything about the JMeter web test plan.