The prerequisite to launch JMeter is to have Java installed in your computer. You can interact with JMeter using the CLI and Non-CLI mode. Command Line Mode is the recommended mode for performance testing purposes. But to create or edit, you can launch JMeter in Non-CLI mode.
Go to the location where you extracted the content of JMeter file e.g. C:\Tools\apache-jmeter-5.3
Navigate to bin folder and launch jmeter.bat for Windows OS or jmeter.sh for Linux/macOS systems.
If Java is installed properly, JMeter will launch as shown below.
Congratuations on launching JMeter π
Test Plan
In JMeter world, you create test plans which has the file extension of .jmx. If you open .jmx file in your favorite editor, you can see the XML tags.
A typical JMeter test plan consists of at least one Test Plan element and one or more Thread Groups and/or Samplers/Other elements.
π You cannot delete Test Plan element
Thread Group
Thread Group is the inception for any JMeter tests. In Thread Group you can configure the number of threads/users, duration, ramp up period etc.
In this exercise, we are going with the default values of Thread Group.
Let's get started π
β¨οΈ Activities
Launch JMeter
Add a Thread Group by right clicking on Test Plan > Threads (Users) > Thread Group
Go to File > Save, enter S01_PetStore.jmx and hit Save button
Push the JMeter test plan to your repo
After successful push, I will let you know the next steps.
Tips
π Whenever you want to add any type of elements, just right click on the appropriate parent element.
π If you want to delete any element, press Delete key in your keyboard.
β CAUTION: Undo is not possible in JMeter.
π Instead of deleting, you can disable the element by clicking on right clicking on it > Disable.
Create your first Thread Group
π Launching JMeter
The prerequisite to launch JMeter is to have Java installed in your computer. You can interact with JMeter using the CLI and Non-CLI mode. Command Line Mode is the recommended mode for performance testing purposes. But to create or edit, you can launch JMeter in Non-CLI mode.
Go to the location where you extracted the content of JMeter file e.g.
C:\Tools\apache-jmeter-5.3
Navigate to
bin
folder and launchjmeter.bat
for Windows OS orjmeter.sh
for Linux/macOS systems.If Java is installed properly, JMeter will launch as shown below.
Congratuations on launching JMeter π
Test Plan
In JMeter world, you create test plans which has the file extension of .jmx. If you open .jmx file in your favorite editor, you can see the XML tags.
A typical JMeter test plan consists of at least one
Test Plan
element and one or moreThread Groups
and/orSamplers
/Other elements
.π You cannot delete
Test Plan
elementThread Group
Thread Group
is the inception for any JMeter tests. InThread Group
you can configure the number of threads/users, duration, ramp up period etc.In this exercise, we are going with the default values of
Thread Group
.Let's get started π
β¨οΈ Activities
Thread Group
by right clicking onTest Plan > Threads (Users) > Thread Group
File > Save
, enterS01_PetStore.jmx
and hitSave
buttonAfter successful push, I will let you know the next steps.
Tips
π Whenever you want to add any type of elements, just right click on the appropriate parent element.
π If you want to delete any element, press
Delete
key in your keyboard.π Instead of deleting, you can disable the element by clicking on
right clicking on it > Disable
.