create_test_plan_from_openapi
Turn OpenAPI YAML/JSON files into JMeter test plans. Configure users, loops, ramp time, and load profiles to generate a ready-to-run .jmx file.
Instructions
Create a JMeter test plan from an OpenAPI YAML/JSON file. Use this when the user asks for a plan based on an OpenAPI file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional JMeter test plan name | |
| loops | No | Loop count; use -1 for forever. For deterministic profiles, omit or match the policy value. | |
| users | No | Required only for testProfile=custom. For deterministic profiles, omit or match the policy value. | |
| envFile | No | Optional .env file used for auth/data defaults | |
| rampTime | No | Ramp-up time in seconds. For deterministic profiles, omit or match the policy value. | |
| outputfile | Yes | Path where to save the .jmx file | |
| openapiFile | Yes | Absolute or relative path to the OpenAPI YAML/JSON file | |
| serverIndex | No | 1-based OpenAPI server index to use | |
| testProfile | No | Deterministic profile: custom, smoke, baseline, load, spike, stress, or soak | custom |
| endpointIndex | No | 1-based endpoint index from the OpenAPI paths/methods | |
| durationSeconds | No | Duration for scheduled profiles such as soak. For deterministic profiles, omit or match the policy value. | |
| allowAggressiveLoad | No | Required for aggressive profiles or requests that exceed discovered rate limits. | |
| addResponseCodeAssertion | No | Add a response-code assertion based on the OpenAPI success response |