← All Prompt Categories

📚 LLM HUB · 6 PROMPTS

JMeter Script Generation

6 copy-ready AI prompts for jmeter script generation in JMeter, k6, and Gatling. Part of the JMeter.AI LLM Hub.

Generate JMeter Test Plan (JMX) for REST API

Generate a complete JMeter test plan (.jmx XML) for the following REST API:

Base URL: [https://api.example.com]
Authentication: [Bearer token / Basic Auth / OAuth2 / API Key]
Endpoints to test:
  1. [GET /endpoint1]. [description]
  2. [POST /endpoint2]. request body: [JSON body]
  3. [PUT /endpoint3]. [description]

Requirements:
- Thread Group: [N] users, [N]s ramp-up, [N] loops
- CSV parameterization for [field names]
- Response assertions on status codes
- Response time assertions
- JSON extractors for dynamic values
- Listeners: View Results Tree (disabled), Summary Report, Backend Listener for Grafana/InfluxDB
- Console output suppressed for CI runs

Output valid JMX XML with proper indentation.

JMeter Thread Group Configuration

Help me configure JMeter Thread Groups for the following scenario:

Scenario: [describe what you're testing]
Peak users: [N]
Ramp-up time: [N seconds]
Test duration: [N minutes]
Ramp-down: [yes/no]

Provide configurations for:
1. Standard Thread Group (ramp-up/hold/ramp-down)
2. Ultimate Thread Group (if plugin available)
3. Concurrency Thread Group (if plugin available)

Include XML snippets and explain the difference between each approach.

HTTP Request Sampler with Headers

Generate a JMeter HTTP Request sampler with the following specification:

Method: [GET / POST / PUT / DELETE / PATCH]
URL: [full URL or path]
Headers:
  - Content-Type: [application/json / etc.]
  - Authorization: ${auth_token}
  - [Any custom headers]

Request body (if POST/PUT):
[Paste JSON body]

Include:
- HTTP Header Manager
- Content Encoding
- Follow Redirects setting
- Timeout configuration (connect: 5000ms, response: 30000ms)

JMeter Config Element Setup

Generate JMeter config elements for the following test plan:

1. HTTP Request Defaults. Base URL: [URL], connection timeout: 5000, response timeout: 30000
2. HTTP Cookie Manager. clear each iteration: yes
3. HTTP Cache Manager. clear each iteration: yes
4. User Defined Variables. define: [list variables and values]
5. CSV Data Set Config. file: testdata.csv, variables: [names], delimiter: comma, recycle: true, stop on EOF: false

Output each as a valid JMX XML snippet.

JMeter Distributed Testing Setup

I need to run JMeter in distributed mode with:
- 1 master node
- [N] slave/worker nodes
- Target: [N] total VUs across all nodes

Provide:
- jmeter.properties configuration for master and slaves
- Command to start JMeter server on slaves
- Command to run the test from master
- How to split VUs across nodes
- How to merge and analyze results
- Common issues and fixes (firewall, RMI, SSL)

Backend Listener Configuration (InfluxDB / Grafana)

Configure JMeter Backend Listener to send metrics to InfluxDB for Grafana dashboards.

InfluxDB details:
- URL: [http://localhost:8086]
- Database/Bucket: [jmeter]
- Version: [InfluxDB 1.x / 2.x]

Provide:
- Backend Listener XML configuration
- Required InfluxDB setup commands
- Grafana dashboard import instructions
- Key metrics that will be streamed
- Recommended Grafana JMeter dashboard (ID if available)