---
title: "__TestPlanName"
description: "JMeter __TestPlanName function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values."
url: https://docs.jmeter.ai/functions/testplanname/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# __TestPlanName

*Also documented in context in the [full Functions and Variables reference](/user-manual/functions/#__TestPlanName).*

The TestPlanName function returns the name of the current test plan (can be used in Including Plans to know the name of the calling test plan).

Example:

```bash
\${__TestPlanName}
```

will return the file name of your test plan, for example if plan is in a file named Demo.jmx, it will return “`Demo.jmx`

## Related

- [Functions and Variables Guide](/topics/functions-and-variables/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Functions Reference](/user-manual/functions/)
- [Component Reference](/user-manual/component-reference/)
