JMeter Test Plan

Brief Description on JMeter Test Plan

Test plan as its name suggests, it is a main script element that contains all the required elements to load test with Jmeter. You can see in the tree structure of Jmeter that all the elements are child of the test plan.

  • First of all to open apache load testing tool “JMeter” you need to click on ApacheJMeter.jar file/jmeter.bat file(in case of windows machine) or case of mac or ubuntu).

  • It will open JMeter application with default Test Plan and Workbench already opened.

Below is the description for the elements of the JMeter test plan:-

Name:- Name of the Test Plan

Comments:- Description of Test Plan or any other comments you can add here

User Defined Variables:- It is used to store User Defined Values. It has two columns Name and Values. Name will be used wherever we want to use that value as “$Name”. In below screenshot we have given Parameter URL and declared it’s value www.***.com.

Now we can use this parameter as many times we want using ${URL}.


  • Run Thread Groups consecutively:- It works when you have more than one thread groups added in your Test Plan

For Example in below screenshot two threads groups(Thread Group A and Thread Group B) are added. In the first one we have checked the Run Thread Groups consecutively label.

After this, when I ran my test we can check in View result tree listeners that after complete running of Thread Group A requests, Thread Group B requests were started running.

In second scenario, we uncheck it and ran our test and check the result is view result tree.

In this, we can see both JMeter Thread groups running in parallel. Which is by default property of JMeter. So use this as you required.


  • Run tearDown Thread Groups after shutdown of main threads:- If checked Run tearDown threads then tear down threads will run after shutting down of main threads
    • tearDown Thread Group that can be utilized to perform Post-Test Actions. The behavior of these threads is exactly like a normal Thread Group element. The difference is that these type of threads execute after the test has finished executing its regular Thread Groups. This thread group can be utilized

If selected, the tearDown groups (if any) will be run after graceful shutdown of the main threads. The tearDown threads won’t be run if the test is forcibly stopped. If selected, the tearDown groups (if any) will be run after graceful shutdown of the main threads. The tearDown threads won’t be run if the test is forcibly stopped.

  • Functional Test Mode:- To test your application functionally also, Once it is checked it will save Response data of requests as well. But it will affect the performance of the JMeter also while running the Load test.

Currently it is not functioning properly, but you can do functional testing using configuring listeners also and assertions in JMeter. To do so First you need to add a listener to your Thread group.

In below example I am adding View Result Tree Listener. After that click on Configure button in view Result Tree. Check all fields for which you want save data and click on done. Provide a Filename parameter like “TestPlan.log”

Now run your test and after completion your test a file will be generated in JMeter default location which is /bin directory.





And once you open the file you will find all details which you checked to store in the file.


Add directory or jar to classpath:-  External Jars which need to include in test can be added here just need to browse and provide the location of file.


For example if you want to use groovy in your script for some manipulation then we need provide Groovy Jar to the classpath. So there is two way of doing that

  • First is we can put the Jars in  * JMETER_HOME/lib – used for utility jars * JMETER_HOME/lib/ext – used for JMeter components and add-ons.
  • Second one is give the path of Jar in the test Plan only

You may also like