• info@helpingtesters.com
  • helpingtesters

Learning JMeter components and GUI

September 10, 2017 JMeter Tutorial
Learning JMeter, JMeter GUI, JMeter GUI Tutorial

As discussed in Step 6 to 8 in the previous blog – JMeter Installation Guide > Installation of JMeter, clicking JMeter batch file will launch GUI mode. Learning JMeter the GUI mode of JMeter gives us an interface to create JMeter scripts, Execute test runs and see reports. Once, the script is successfully created we can run JMeter in headless mode to save memory but for initial script creation, GUI mode is used. In this Blog in Learning JMeter, we will be going over each and every component of JMeter GUI which will come handy when you are writing or running your own test runs. 

→Complete list of JMeter Tutorial Series

Default GUI View

When JMeter is launched the default components that are seen on left panel are – Test Plan and WorkBench

Test Plan holds the entire test suite for JMeter.

It is the root of any script. We can add various elements like Thread group, Cookie Manager, Cache Manager, CSV Data config, User defined variables, Listeners etc. inside a Test Plan.

WorkBench is used to store any elements on the temporary basis. For eg. when we try to manually create a script in JMeter then we add “HTTP test script recorder” in Workbench. It holds the recorded requests on the temporary basis.

The panel on the right side will change as we click on elements on the left side.

It will load respective content based on the specific component selected.

On top, you can see menu options like – File, Edit, Search, Run, Options and Help.

Also, there are buttons to play/replay script and clear the results in the listener.

Let us now discuss each component one by one.

Test Plan

The JMeter script is created by adding the components in a tree like structure inside a Test Plan.

Based on requirements of the script, elements to a “Test Plan” can be added and below steps can be followed :

Adding Config Elements

There are multiple config elements available in JMeter that support the script. They may be added at “Test Plan” level or inside “Thread Group”.

Do right click on Test Plan > Add > Config Element > CSV Data Config

Do right click on Test Plan > Add > Config Element > HTTP Cookie Manager

Do right click on Test Plan > Add > Config Element > HTTP Cache Manager

Do right click on Test Plan > Add > Config Element > HTTP Header Manager

Do right click on Test Plan > Add > Config Element > User Defined Variable

Adding “Thread Group”

Values in “Thread group” decide the number of times request needs to be sent to the server. Fields such as Number of Threads (users), Ramp-up period, Loop Count are populated for desired stress to be put on the application.

Do right click on Test Plan > Add > Threads > Thread Group

 

Adding Controllers

Controllers are responsible for the way in which request should be sent to the server. For example: Once Only Controller will send the request only even if the number of users set in Thread group is 10.

Do right click on Thread group > Add > Logic Controller > Select Controller from the list

 

 

Adding Sampler

Requests are created using Samplers. Most commonly used Sampler is “HTTP Request”.

Do right click on Controller > Add > Sampler > HTTP Request

Adding Assertions

Assertions are required to validate your response.

Do right click on Thread Group > Add > Assertions >

Adding Timers

 

Adding Listeners

In JMeter, results of test run can be viewed in various forms like the graph, table, tree structure using a different type of Listeners.

Do right click on Test Plan > Add > Listener > Select any Listener

 

 

We will be learning JMeter components in detail in later articles. Stick with Learning JMeter HelpingTester.com series and practice. If you have any doubts please ask them in comments.

About the author

Ankita Dawar author

Ankita has worked on different types of testing like Manual, Automation, Performance testing.  She likes to learn about new tools in market that help to make testing easier and interesting. Testing is her passion due to versatile areas it offers.

Leave a Reply

Your email address will not be published.