Convert OpenAPI / Swagger to JMeter JMX Test Plan
convert_openapi_to_jmxConvert an OpenAPI 3.0/3.1 or Swagger 2.0 document (JSON or YAML) into a JMeter 5.6.3 .jmx test plan: servers become HTTP Request Defaults/${BASE_URL}, path parameters become User Defined Variables, request bodies are sampled from schemas, bearer/basic/apiKey security becomes ${AUTH_TOKEN}/${BASIC_AUTH}/${API_KEY}, with optional method, tag, and deprecated-operation filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Only include operations with one of these tags ("default" = untagged). Empty = all. | |
| input | Yes | OpenAPI 3.x or Swagger 2.0 document as JSON or YAML text (max 1MB). | |
| methods | No | HTTP methods to include (default: GET, POST, PUT, PATCH, DELETE). | |
| threads | No | Thread concurrency / virtual users (default: 10). | |
| loopCount | No | Loop count (-1 for infinite, default: 1). | |
| serverIndex | No | Zero-based index of the OpenAPI server to use (default: 0). | |
| testPlanName | No | Name of the JMeter Test Plan. | |
| maxOperations | No | Maximum number of operations to convert (default: 500). | |
| rampUpSeconds | No | Ramp-up time in seconds (default: 5). | |
| durationSeconds | No | Test duration in seconds (0 = disabled, default: 0). | |
| parameterizeHost | No | Extract the common host into HTTP Request Defaults and ${BASE_URL} (default: true). | |
| useExampleValues | No | Substitute example/sample values into path params instead of ${var} variables (default: false). | |
| includeAssertions | No | Add HTTP 200/201/204 Response Code assertions (default: true). | |
| includeDeprecated | No | Include deprecated operations (default: false). | |
| includeCookieManager | No | Include HTTP Cookie Manager (default: true). | |
| includeOptionalQueryParams | No | Include optional query parameters (default: false). |