JMeter - Create a test plan to test a website (

This assumes you have downloaded and installed JMeter.

A test plan is what JMeter uses to know what performance test is being executed. For example, every test plan has the following:

  • The hostname of the server being tested
  • The resource being tested, such as an HTML page or a Java app
  • How much load to put on the target resource

Let’s look at how a new test plan is created. It almost always makes sense to create a new test plan using the JMeter GUI on your local PC, so if you are creating a new test plan, launch the JMeter GUI on your local PC.

# Windows

# Linux

When you first launch JMeter, you should get a view like this.


TEST PLAN - .jmx file

Let's say you want to test the performance your web server. You can use JMeter to simulate a bunch of users hitting the index.html page on the web server to see how well the web server is able to respond to a bunch of requests. For example, let's say you want to see how the web server holds up when 100 users submit a request to GET index.html. 

To perform this test, you need to create what is called a "test plan". A test plan is actually nothing more than an XML file with the .jmx extension, such as example.jmx. 


Define how much traffic you are going to simulate (Thread Group)

In the left panel of the JMeter GUI, right-click on Test Plan and select Add Threads (users) > Thread Group. In this example, 60 requests (threads) will be submitted with a 1 second (ramp up period) delay between each request, and the test will be repeated 1 time (loop count).


Define the HTML page being tested

In the left panel of the JMeter GUI, right-click on Thread Group and select Add Sampler > HTTP Request. In this example, requests will be targetted to



Save your Test Plan as a .jmx file

Now select File > Save Test Plan as


Run the test

You are now ready to run your test plan.


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter e49fa in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |