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:
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:
- Name: To provide Test Plan name. It could be the name of a project or test case.
- Comments: To provide a comment
- User Defined Variables: Static variables can be defined for values that are repeated throughout a test, such as server names.
- 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.
- Run tearDown Thread Groups after shutdown of main threads: Check the box if you want to run tearDown thread group.
- 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:
Possible Child Element(s) of Test Plan:
- Thread Group
- Config Element
- Non-Test Elements
- Test Fragment
Following element(s) can not de added directly as a child element:
- Logic Controller
- Another Test Plan