JMeter – Test Plan

JMeter - Test Plan

Test Plan is a Parent element in JMeter under which all other elements are attached. It is a default element. You can rename the test plan as per your project name or test case name; depends on the nomenclature which you follow. This will help you out to differentiate your project, scenario or test case.

How to add ‘Test Plan’ element in JMeter script?

When you launch JMeter in GUI mode, you can see the default ‘Test Plan’ elements appear in the top left corner of JMeter window. Refer below figure:

JMeter - Test Plan Element
Figure 01: Test Plan element

Since ‘Test Plan’ is a parent element, so you can not remove it. Although you can disable it by right-clicking on it and clicking the ‘Disable’ option.

Description of JMeter ‘Test Plan’ input fields:

‘Test Plan’ has the following input fields:

  1. Name: To provide Test Plan name. It could be the name of a project or test case.
  2. Comments: To provide a comment
  3. User Defined VariablesStatic variables can be defined for values that are repeated throughout a test, such as server names.
  4. Run Thread Group Consecutively (i.e. one at a time): Check the box if you have multiple groups under the same test plan and want to run sequentially.
  5. Run tearDown Thread Groups after shutdown of main threads: Check the box if you want to run tearDown thread group.
  6. Functional Test Mode (i.e. save Response Data & Sampler Data): It is mainly used for debugging purpose. It saves response data for validation purpose.

Possible Parent Element(s) of Test Plan:

  • NA

Possible Child Element(s) of Test Plan:

  1. Thread Group
  2. Config Element
  3. Non-Test Elements
  4. PreProcessor
  5. PostProcessor
  6. Assertion
  7. Timer
  8. Listener
  9. Test Fragment

Following element(s) can not de added directly as a child element:

  1. Sampler
  2. Logic Controller
  3. Another Test Plan

Leave a Reply

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