How to Create Test Plan Using Jmeter?

What Is Jmeter?

What Is Test Plan?

  • The Test plan identifies the items, the features to be tested, the types of testing to be performed, the personnel responsible for testing, the resources and schedule required to complete testing, and the risks associated with the plan.

Create a Jmeter Test Plan

  • A Test Plan can be considered as a root node that has potentially many levels of additional elements/nodes that form a hierarchy, which JMeter executes when we run the test plan. A Test plan can consist of more than one element such as thread groups, logic controllers, timers, listeners, etc but It must important to have a minimum of one thread group in every test plan.

Let’s start creating a test plan, by launching JMeter in the following steps:

  • Go to the JMeter bin folder like D:\apache-JMeter-5.4.3\bin.
  • Double click on Apache JMeter Executable Jar File
  • After some time you can see the following Jmeter Screen
  1. Rename your Test Plan.
  2. User-defined variables give flexibility when you have to repeat values in several parts of the test plan.
  3. You can use it according to your needs.
  1. Select the desired element
  2. Right-click on the element
  3. Select the “Remove” option
  1. Select and right-click on the Thread group in which you want to add the loaded element
  2. Click on the “Merge” option
  3. Select the .jmx file where you saved the elements
  4. Elements will be merged into that thread group
  5. Save the Test Plan /Element
  1. Select and Right click on the Thread element
  2. Select the “Save Selection As” option
  3. Save the file at the specified location

Steps to Configure Thread Group Elements:

Steps to Save JMeter Test Plan:

Steps to Run JMeter Test Plan:

  1. The green button shows that the Test Plan is executing
  2. Total number of active threads
  3. The stop button enables when the Test plan is running
  1. Stop: This stood the thread immediately if possible. Many samplers are interruptible so active samplers can terminate early.
  2. Shutdown: This requests the threads to stop at the end of any ongoing task. It will not interrupt any active threads.
  1. Jmeter shows the total number of errors in the log
  2. Click the yellow triangle button to view the log panel
  3. Logs display in the log panel

--

--

Devstringx Technologies is highly recommended IT company for custom software development, mobile app development and automation testing services

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Devstringx Technologies

Devstringx Technologies is highly recommended IT company for custom software development, mobile app development and automation testing services