How to use OpenAPI → Test Cases
- Paste the specification (or load the example).
- Optionally filter to specific operations and pick the categories you want.
- Choose the export format and generate.
- Review the table, then copy or download the export for your test-management tool.
OpenAPI → Test Cases features
- Parses OpenAPI 3.x and Swagger 2.0 in JSON or YAML, resolving local $refs
- Generates happy-path, missing-required, invalid-type, boundary, auth, not-found, documented-error, method and content-type cases per operation
- Example requests with realistic synthetic values for path/query parameters and bodies
- Priorities, preconditions, steps, expected status and expected result on every case
- Filter by operation and category; export as Markdown, JSON or CSV
OpenAPI → Test Cases example
Create-book endpoint
Input:
POST /books with required body { title, isbn (^[0-9]{13}$), price 0–10000 } and bearer securityOutput:
TC-003 Create a book — valid request succeeds (201)
TC-004 Create a book — body without required field "title" (400)
TC-007 Create a book — wrong type for body field "price" (number → "abc") (400)
TC-011 Create a book — body "price" at above maximum (10001) (400)
TC-015 Create a book — no credentials (401)
TC-018 Create a book — duplicate create (409)Frequently asked questions about OpenAPI → Test Cases
What test cases are generated?
Per operation: happy path, optional parameters omitted, missing required parameters and body fields, invalid types, boundary values (min/max, length, item counts), unauthenticated/forbidden access, unknown ids (404), documented error statuses, unsupported methods (405) and unsupported content types (415).
Can I focus on one operation?
Yes — filter by method, path, operationId, summary or tag (e.g. "POST /books" or "createBook"), and choose the categories you need.
Which formats can I export?
Markdown (ready for a wiki or PR), JSON (for tooling) and CSV (for spreadsheets or test-management import). The table can also be downloaded as CSV.
Does it support Swagger 2.0?
Yes. Swagger 2.0 body parameters, definitions and securityDefinitions are handled alongside OpenAPI 3.x.
Technical notes
Boundary cases are derived from minimum/maximum, exclusive bounds, minLength/maxLength and maxItems; when a numeric field has no bounds, zero, negative and very large values are proposed. Security is read from operation-level or global security requirements.