Jmeter Test plan and its elements

A test plan can be seen as your JMeter script for running tests. A test strategy is composed of test components such thread groups, logic controllers, sample-generating controllers, listeners, timers, assertions, and configuration elements.

Every test plan needs to contain at least one thread group. Depending on our requirements, we can add or remove components.

Let's begin creating a test plan by carrying out these easy steps:

1. Launch JMeter Window

To run the JMeter interface, navigate to the JMeter bin folder and JMeter batch. The actual test plan is kept in the Test Plan node of the JMeter interface by default. User defined variables and the test plan name are both contained in the test plan node.

2. Add or remove test plan elements:

The next step after creating a JMeter test plan is to add and remove test plan components. Right-click on the selected item after selecting the test plan node.

  • When the mouse is hovered over, the "Add" option, an elements list will appear.
  • Click the desired choice after letting the mouse hover over the selected list item.
  • The figure below depicts how to include a thread group element in a test plan:

3. Configuring tree elements:

Controls on JMeter's right-side frame can be used to configure various test plan components.
A thread group, for instance, can be established by

  • Itsname.
  • quantity of threads (the number of users you are testing).
  • Ramp-up period (how much time you want to allow the Thread Group to go from 0 to 3 users).
  • Loop number (How many times the test should be looped).

Step 4: Run JMeter test plan.

You have two options for starting the test plan:
either click the green play button or select Start (Ctrl + r) from the Run menu item.
The picture below demonstrates how to execute a test plan.


Step 5: Check JMeter test plan execution logs:

JMeter logs all warnings, faults, and information regarding test runs in the jmeter.log file.
By clicking on the exclamation point located at the right-hand side of the part directly below the menu bar, you can access JMeter logs.
You can see how to access the JMeter logs in the image below:

Comments

Popular Posts