---
title: "Include Controller"
description: "Configure the JMeter Include Controller logic controllers: properties, defaults, and practical usage notes for building reliable load tests."
url: https://docs.jmeter.ai/components/include-controller/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# Include Controller

*Part of the **Logic Controllers** category. Also documented in context in the [full Component Reference](/user-manual/component-reference/#include-controller).*

![Include Controller](/images/screenshots/includecontroller.png)

The include controller is designed to use an external JMX file. To use it, create a Test Fragment
underneath the Test Plan and add any desired samplers, controllers etc. below it.
Then save the Test Plan.  The file is now ready to be included as part of other Test Plans.

For convenience, a [Thread Group](/components/thread-group/) can also be added in the external JMX file for debugging purposes.
A [Module Controller](/components/module-controller/) can be used to reference the Test Fragment.  The [Thread Group](/components/thread-group/) will be ignored during the
include process.

If the test uses a Cookie Manager or User Defined Variables, these should be placed in the top-level
test plan, not the included file, otherwise they are not guaranteed to work.

> **Note**
> This element does not support variables/functions in the filename field.
>
> However, if the property `includecontroller.prefix` is defined,
> the contents are used to prefix the pathname.

> **Note**
> When using Include Controller and including the same JMX file, ensure you name the Include Controller differently to avoid facing known issue [Bug 50898](https://bz.apache.org/bugzilla/show_bug.cgi?id=50898).

If the file cannot be found at the location given by `prefix`+`Filename`, then the controller
attempts to open the `Filename` relative to the JMX launch directory.

| Name | Required | Description |
| --- | --- | --- |
| Filename | Yes | The file to include. |

## Related

- [Logic Controllers & Flow Control](/topics/logic-controllers-flow-control/)
- [Full Component Reference](/user-manual/component-reference/)
- [Functions and Variables](/user-manual/functions/)
