Components and Test Plan for JMeter

Penning down again for your reference:

  • Test Plan
  • Thread Group
  • Samplers
  • Listeners
  • Workbench
  • Assertions
  • Config Element
  • Logic Controllers
  • Timer

All major components of Jmeter such as Thread Group, Samplers, Listeners and Config Elements are explained in details later in the article.

Please refer to the below flow diagram to understand each component and their relation to specific modules of JMeter.

Now we would start touching each component of Jmeter along with use cases just to know how it works and how can testers implement these in their testing. Please note that we won’t be covering all Samplers, listeners in this article. We will work on the most used ones and will take up rest in the next article when we create real time Test Plans.

 Test Plan

Just as a simple test plan in Software Testing consists of all steps which execute the script, JMeter’s Test plan has the same purpose. Everything which is included in a test plan is executed in a sequence which is top to bottom or as per the defined sequence in the test plan.

Test Plan can be as simple as it could be, with Just ThreadGroup, Sampler, and Listener and it starts getting more complex as soon as you start adding more elements like config elements, preprocessors or controllers.

As we all know that JMeter measure performance by generating Virtual Users or Threads which hits server under test as if real users are sending requests to a server. Therefore, every Test Plan should have virtual users or Thread Group as we call them in JMeter’s terms.

Important Points about Test Plan:
  • The test plan should be saved before running
  • Jmeter files or test plans are saved in form of. JMX extension files
  • You can also save parts of Test Plan as the different selection. For example, If you want to save HTTP Request Sampler with Listener, you can save it as Test Fragment so that it can be used in other test scenarios as well
  • Elements of Workbench are not saved with Test Plan

Leave a Reply

Your email address will not be published. Required fields are marked *