2 Minutes To Code (β Version)

JMeter - 2 minute tutorial

How Apache JMeter works

For using JMeter, you need to define your test plan. Which basically means, you have to specify
  • http or other urls to hit or sql queries to run
  • how to store/display the results
  • how many threads to run to create desired load/stress
In JMeter terms, these are called Threads, Samplers, Listeners etc.

So a complete test plan contains samplers, listeners etc. To create it, you right click on "Test Plan" on the left-hand pane of JMeter GUI and add required elements.

These terms are explained below briefly:

JMeter's Test elements explained briefly :

Test Elements Description
Test Plan Container of complete test.
Thread Group A test thread (its name thread-group is misleading). You tell it what urls to hit or queries to run.
Sampler The http urls/ sql queries to be stress tested
Listener They log the test urls and response and displays them graphically, or in tables etc
Logic Controller They customize how samplers (basically urls/queries) are run i.e. in sequential order, randomly, in loop etc
Timer They help introduce fixed/random delay between urls/queries to better mimic real/practical scenarios
Config Element Convenience objects to configure http/jdbc parameters