JMeter Performance Testing Tutorial 3 - Understanding of JMeter Graphical User Interface

Testing Funda by Zeeshan Asghar
20 Mar 202107:15

Summary

TLDRThis JMeter tutorial provides an introduction to the JMeter user interface (UI). It covers how to access and navigate the UI, emphasizing the best practice of using the UI only for script creation and debugging while executing load tests via the command line. The tutorial explains key UI elements like the test plan, properties pane, menu bar, and quick-access icons. It also introduces basic functionalities such as adding elements, using templates, enabling/disabling elements, and managing plugins. Overall, it gives a clear overview of how to work within JMeter's interface efficiently.

Takeaways

  • 😀 The JMeter UI is primarily used for creating and debugging scripts, not for load testing.
  • 📂 Load testing should be done using the command line, not the UI.
  • 🧩 The left side of the JMeter UI displays the test plan, where scripts are created using different elements.
  • ⚙️ The right side of the JMeter UI shows the properties of any selected element in the test plan.
  • 🌳 JMeter scripts are created in a tree hierarchy of elements added to the test plan.
  • ✏️ The menu bar allows users to open, save, merge, and edit test plans, with options to enable or disable specific elements.
  • 🔍 Users can search for specific elements within the test plan, with options to replace them if needed.
  • 🧪 The 'Run' option allows for script execution with a single user for debugging and testing purposes.
  • 🌐 Remote distributed testing allows multiple JMeter instances across different machines to run simultaneously.
  • 🔌 The Plugin Manager lets users add plugins to JMeter, enhancing its functionality, though it must be installed manually.

Q & A

  • What is the purpose of the JMeter UI according to the tutorial?

    -The JMeter UI is used for creating and debugging test scripts, but it is not recommended for executing load tests. Load tests should be run using the command line.

  • Why should the UI mode not be used for load testing in JMeter?

    -The UI mode should not be used for load testing because it is resource-intensive. It is meant for creating and debugging scripts, while the actual load tests should be executed via the command line for better performance.

  • What is a 'Test Plan' in JMeter, and how is it used?

    -A Test Plan in JMeter is the main area where scripts are created. It is a combination of different elements that define the behavior of the performance test. The script is organized as a tree hierarchy within the Test Plan.

  • What happens when you add an element to a JMeter Test Plan?

    -When you add an element to a JMeter Test Plan, a tree hierarchy is created on the left side, and the properties of the selected element are displayed on the right side of the UI.

  • What is a 'Thread Group' in JMeter, and what is its role?

    -A Thread Group in JMeter defines the number of users (threads) and how they will execute the test. It is an important part of the test script, and each thread represents one user.

  • What are some of the editing options available in JMeter's menu bar?

    -In the 'Edit' menu, JMeter offers options such as duplicating, copying, pasting, and merging elements. There is also the option to enable or disable specific elements within the test plan.

  • When would you use the 'Run' options in the JMeter UI?

    -The 'Run' options in the UI are used primarily for testing and debugging scripts with a single user. This simulates a functional test. They can also be used for remote distribution testing, where multiple JMeter instances are run together.

  • What are the 'Look and Feel' options in JMeter used for?

    -The 'Look and Feel' options in JMeter allow users to change the theme or appearance of the UI. This is a visual preference setting and does not affect the functionality of the tests.

  • How can you manage plugins in JMeter?

    -Plugins in JMeter can be managed using the Plugin Manager. While the Plugin Manager is not available by default, users can install it by adding the necessary plugin files, allowing them to add or manage various plugins.

  • What logging features does JMeter provide during test execution?

    -JMeter provides logging features that display logs during test execution. Users can view these logs in real-time and even set the logging level to capture specific types of events or issues.

Outlines

00:00

📋 Introduction to JMeter UI and Best Practices

In this introduction, the presenter welcomes viewers to the JMeter tutorial and explains the purpose of the session, which focuses on exploring the JMeter UI. The presenter references previous sessions where folder structures were discussed and proceeds to demonstrate how to open JMeter via the batch file located in the bin folder. Importantly, it is emphasized that the JMeter UI should only be used for test creation and debugging, not for load testing, which should be executed through the command line. This segment lays the groundwork by setting expectations and explaining best practices for performance testing.

05:01

🔧 Exploring the JMeter Test Plan and Elements

This section dives into the structure of JMeter's test plan interface, explaining that the test plan is the area where scripts are created. The test plan consists of different elements, with the right side of the UI displaying properties of selected elements. The presenter adds a thread group, introduces the hierarchy view on the left, and explains that the properties of each element are displayed on the right. This part familiarizes users with the fundamental components of the JMeter interface, highlighting how elements and their properties are organized within the test plan.

🛠 Navigating Menu Options and Editing Scripts

This segment covers JMeter’s menu options, including how to open new or existing scripts, use templates, save plans, and merge scripts. The presenter explains the importance of enabling and disabling script elements, particularly for debugging purposes. Users are shown how to duplicate, copy, paste, and merge elements in their scripts, emphasizing flexibility and control over the test creation process. These tools are essential for managing and modifying scripts efficiently.

🚦 Running Tests and Debugging in JMeter

Here, the focus shifts to running scripts within JMeter’s UI. While load testing is executed via the command line, the UI is useful for testing scripts with a single user during the debugging process. The presenter explains when to use the run options in the UI, particularly for functional testing and remote distributed testing, where multiple JMeter instances work together. This part gives insight into how users can ensure their scripts are functioning properly before conducting full-scale load tests.

🎨 Customizing the Look and Feel of JMeter

This portion explains how to customize the look and feel of the JMeter UI, including changing themes and viewing logs. The presenter mentions the ability to set log levels and add SSL certificates for secure connections. Users are also introduced to zooming options and plugin managers, although the presenter notes that the plugin manager requires additional setup. The emphasis is on how users can personalize their interface and enhance functionality with plugins.

📂 Utilizing JMeter Tools and Help Resources

The final part of the tutorial explores various tools within JMeter, including heap dumps, HTML report generation, and transaction exports. The presenter briefly touches on the tool options available in the menu, encouraging users not to worry too much about complex tools like heap dumps for now. Additionally, the help section is introduced, offering documentation and useful links such as release notes and issue reporting. This segment highlights JMeter’s extensive resources for users seeking support or more advanced functionalities.

⚙️ JMeter Toolbar and Plugin Manager

The tutorial concludes by explaining the purpose of JMeter’s toolbar icons, which provide quick access to key actions like creating new scripts, running tests, and accessing templates. These icons serve as shortcuts to commonly used menu options, allowing users to efficiently manage their test plans. The presenter also explains that the plugin manager icon is not available by default and requires manual setup. This final section wraps up the tutorial by summarizing the UI’s core functions and shortcuts for easier navigation.

Mindmap

Keywords

💡JMeter

JMeter is an open-source tool used for performance testing, primarily for web applications. In the video, JMeter is the central tool being discussed, with the tutorial focusing on its user interface, functions, and best practices for creating and debugging test scripts.

💡User Interface (UI)

The User Interface (UI) refers to the visual part of JMeter that allows users to interact with the tool. In the tutorial, the UI is explored in detail, explaining various elements like the test plan, menu bar, and element properties, highlighting its role in creating and debugging scripts, but not for load testing.

💡Test Plan

A Test Plan in JMeter is the blueprint where the entire test script is structured. The tutorial explains that the test plan is where users add elements like thread groups, and how it forms a hierarchy of the test scripts being built. It is the core structure around which JMeter tests are organized.

💡Thread Group

The Thread Group is a core element in JMeter that defines the number of users or 'threads' that will simulate requests to a server. The video mentions adding a thread group and promises a deeper explanation of it in future sessions. It is used to control how many users are tested and for how long.

💡Element Properties

Element Properties in JMeter refer to the configurable settings of each test element (like a thread group or sampler). In the tutorial, it is explained that once an element is added to the test plan, its properties appear on the right side of the UI, allowing users to adjust settings for precise test control.

💡Command Line

The Command Line in JMeter is the recommended method for executing load tests. The tutorial highlights that while the UI is used for test creation and debugging, the actual load testing should be done via the command line for better performance and accuracy during high-load scenarios.

💡Debugging

Debugging in JMeter refers to the process of identifying and fixing issues in a test script. The tutorial emphasizes the importance of using the UI for debugging purposes, allowing users to run their scripts with a single user to ensure everything works as expected before executing a full load test.

💡Plugins Manager

The Plugins Manager in JMeter allows users to extend the tool's functionality by adding additional plugins. The video mentions that the Plugins Manager is not included by default and explains the steps to integrate it, enabling users to enhance their testing capabilities with extra tools.

💡Remote Distribution Testing

Remote Distribution Testing is a method in JMeter that involves running test scripts across multiple machines to simulate a large number of users. The tutorial briefly introduces this concept, explaining that it allows users to run tests from several JMeter instances, which is useful for large-scale performance tests.

💡Look and Feel

Look and Feel in JMeter refers to the appearance of the user interface. The tutorial mentions that users can change the theme of JMeter to suit their preferences, enhancing usability and comfort while working on the test scripts, though this feature doesn’t impact the functionality of the tool.

Highlights

Introduction to JMeter tutorial and overview of its user interface.

Explanation of JMeter's folder structure, focusing on the 'bin' folder and launching JMeter using the batch file.

Best practice tip: Don't use UI mode for load testing; use UI only for script creation and debugging.

Overview of the JMeter UI layout, focusing on the test plan and its combination of elements for script building.

Exploring properties: Each element in the test plan has associated properties shown on the right side of the interface.

Adding elements: Introduction to thread groups and building a tree hierarchy for scripts.

File menu overview: Functions such as opening new scripts, using templates, saving plans, and restarting JMeter.

Edit menu overview: Functions for duplicating, copying, pasting, merging, and enabling/disabling elements.

Search functionality: Ability to search for and replace specific elements in a script.

Run options: Running scripts with a single user for debugging and using command line for load testing.

Remote distribution testing: Running JMeter on multiple machines for load generation, introduced as a future topic.

Look and feel customization: Adjusting JMeter's appearance and setting logs during execution.

Plugin manager: Using the plugin manager to add additional functionality to JMeter.

Tools menu: Creating HTML reports, exporting transactions, and other available tools in JMeter.

Quick access icons: Shortcuts for frequently used actions such as creating new scripts, running tests, and searching.

Transcripts

play00:06

hello everyone

play00:07

welcome to this jmeter tutorial in this

play00:09

tutorial we will learn

play00:10

about the user interface of the g meter

play00:13

so

play00:13

let's begin in our previous session we

play00:16

learned about the different folders and

play00:17

the purpose of those folders in the

play00:19

geometer

play00:20

now open this folder here go to the bin

play00:23

folder

play00:24

and you know that in order to run the

play00:26

geometer we need to

play00:27

open the geometer dot match file okay

play00:30

so here is the batch file okay just

play00:33

double click on this file

play00:34

it will open the terminal and at the

play00:37

same time it will open the ui

play00:39

of the geometer okay it's opening the ui

play00:42

right so this is uh the first look for

play00:45

you

play00:45

in order to understand this is how the j

play00:48

meter looks like

play00:49

but before we understand this ui okay uh

play00:52

we need to understand something more in

play00:54

terms of the best practices

play00:56

just open this terminal here and if you

play00:58

read the first line

play00:59

don't use the ui mode for the load

play01:01

testing only use this for the test

play01:03

creation and this debugging so what this

play01:05

means

play01:05

this means that this ui is used for only

play01:08

creating and debugging the

play01:10

scripts so whenever you're putting or

play01:12

executing the load test

play01:14

you will use the command line we will

play01:15

not open this one so this is one of the

play01:17

best practice

play01:18

you should be aware of and while you are

play01:20

working with the geometer and

play01:21

performance testing

play01:22

now let's explore the different options

play01:25

and different areas of the geometry ui

play01:27

okay on the left by default

play01:30

you will have a test plan so test plan

play01:32

is the area where you will

play01:34

create your skips and here in the g

play01:36

meter your script is basically a

play01:38

combination of the different elements

play01:41

okay and on the right side basically

play01:43

whenever you add any element

play01:45

it has some properties okay so on the

play01:47

right side you will see the properties

play01:49

of that particular element

play01:50

right now test plan is selected by

play01:52

default so you're seeing the properties

play01:54

for this particular plan okay now let's

play01:57

add

play01:58

some element here i'm adding a thread

play02:01

group so if you don't know about the

play02:02

third group don't worry we will learn

play02:04

about the thread groups in our upcoming

play02:06

sessions so on the left it will create a

play02:08

tree hierarchy

play02:09

for you okay and on the right side you

play02:12

will see a different properties

play02:13

of that particular element now let's add

play02:15

one more element here

play02:17

okay right so on the right side you are

play02:20

seeing the properties

play02:21

of flow control action and on the left

play02:24

side

play02:24

just creating a tree hierarchy of your

play02:27

script so this is the main area

play02:28

where you will work okay you will add

play02:31

different elements in the test plan

play02:33

and you will create your script so this

play02:35

is the main and core idea

play02:37

of working on the j meter on the top

play02:39

left corner you you are seeing the menu

play02:41

bar

play02:41

we have different options here click on

play02:43

the file here you can open the new one

play02:46

you can use the templates if you

play02:47

remember that we saw the templars in

play02:49

different folder

play02:50

right so if you want to use those

play02:52

templates you can use from this

play02:53

templates

play02:54

option you can open the existing script

play02:57

okay

play02:57

you can open the recent one if you have

play02:59

created any recent one you can merge the

play03:01

script you can save or you can save the

play03:03

plan as

play03:04

as you want so there are different

play03:05

options okay you can even restart the

play03:07

geometry from here

play03:08

now click on the add edit you have

play03:10

different options

play03:11

to edit your scripts you can duplicate

play03:13

copy paste

play03:15

merge again you have different options

play03:17

the good thing is that you have an other

play03:19

option to enable or disable the

play03:20

different elements present here

play03:23

okay for example if i select this one if

play03:25

i click on edit

play03:27

and i click on disable so this element

play03:29

will be disabled

play03:30

tomorrow if you are working on debugging

play03:32

the script and your script is not fine

play03:34

or you might

play03:35

need to disable some elements during

play03:38

your execution

play03:38

you can disable those elements from here

play03:41

then we have a search option here

play03:43

from here you can search any element if

play03:45

you want

play03:46

to search any particular thing you can

play03:49

search it out you can replace it out

play03:50

as per your requirement okay

play03:54

then you have a run options now we just

play03:56

discussed that

play03:57

in order to execute our load testing

play03:59

scripts we need to use

play04:01

the command line then the question

play04:03

arises here

play04:04

why we need to have these options on the

play04:07

ui then

play04:07

so we need these options in the ui in

play04:09

two cases the one case is that

play04:11

you want to test your skips you want to

play04:14

debug your escapes

play04:15

and for that you will be executing your

play04:18

script with a single

play04:19

user okay so in that case you can run

play04:23

your scripts with a single user

play04:24

just like a functional test okay

play04:27

similarly when you are

play04:28

working on different machines for

play04:31

example

play04:31

you have six different machines from

play04:33

which you are generating a load

play04:35

okay from where you have six j meters

play04:37

working together

play04:39

in that case you have to run all the

play04:41

geometry machines from here

play04:43

together so the concept is basically

play04:45

remote distribution

play04:46

testing we will learn that in our future

play04:48

sessions but here's the

play04:49

overview of this particular run options

play04:52

okay

play04:53

now we have different options here look

play04:54

and feel if you want to change the look

play04:56

and feel

play04:56

the theme okay and if you want to see or

play04:59

log here just click on this one

play05:01

so it will print all the logs here while

play05:03

execution and you can also set the level

play05:05

of the logs

play05:06

if you want to have the ssl okay just

play05:09

click on this one

play05:10

add the ssl certificate so you can do

play05:12

that from here zoom in zoom out

play05:14

then you can add the plugin managers uh

play05:16

you can have

play05:17

you can add a different plugins using

play05:19

this plugin manager

play05:21

by default you won't be able to see this

play05:23

plugin manager

play05:24

okay i will explain you how you can have

play05:26

this plugin manager in the geometer

play05:28

and how you can add the different

play05:29

plugins using this plugin manager

play05:31

okay then we have tools from here you

play05:34

create a heap terms don't worry about

play05:37

this strum right now but again you have

play05:39

different options here you can create a

play05:41

html report

play05:42

you can export the transactions you can

play05:43

import the curve you have different

play05:45

tools available here

play05:46

and again in the help section basically

play05:48

you can have a help

play05:49

and you can go to some useful links like

play05:52

release notes

play05:53

and if you find some issue you can

play05:54

create an issue okay you have

play05:56

very good documentation available here

play05:59

now you can see that you have different

play06:00

icons available here

play06:01

so basically these icons are reflecting

play06:04

to

play06:05

these different options available here

play06:07

in the menu bar

play06:08

okay so in order to go to some quick

play06:10

actions okay for example if you want to

play06:12

create a new one

play06:13

just click on this new one okay if you

play06:15

want to use a template

play06:16

you can use from here quickly okay so

play06:19

these are kind of a shortcuts and quick

play06:21

options okay you can run you can start

play06:24

you can stop

play06:25

okay you can clean clear you can search

play06:28

okay these are all options which are

play06:30

present in the menu so these are

play06:31

kind of a shortcuts and quick accessible

play06:34

so that

play06:35

you don't need to open the menu bar and

play06:37

search for a particular

play06:38

option on the right side so whenever you

play06:41

execute

play06:42

it will show the time here and if there

play06:44

are errors

play06:45

it will show the errors here okay

play06:48

and if you click on this one so you

play06:50

might not see this option here

play06:52

because this is this icon refers to a

play06:55

jmeter plugins manager

play06:57

by default you won't have this you have

play07:00

to

play07:00

do some actions you need to place these

play07:04

uh plugin files in order to work with

play07:06

the plugins okay so this is all about

play07:08

the ui

play07:08

of the jmeter thank you so much for

play07:10

watching this tutorial we hope that you

play07:12

have learned something today

play07:13

see you in the next lecture

Rate This

5.0 / 5 (0 votes)

Связанные теги
JMetertutorialload testingUI guidebest practicesscript debuggingperformance testingthread groupplugin managerremote testing
Вам нужно краткое изложение на английском?