- Home
- Skills
- Testing & Debugging
- QA API Test Design Pro: Full-Coverage Tests from OpenAPI
More screenshots
Works with the AI Agents you already use
QA API Test Design Pro: Full-Coverage Tests from OpenAPI
API Test Design Pro reads your OpenAPI/Swagger spec and writes a deep suite, field by field and endpoint by endpoint, so those cases are in the file before anyone runs it.
$6.99
QA API Test Design Pro: Full-Coverage Tests from OpenAPI
Example session with this skill installed
Design full-coverage API test cases, including security tests, for demoshop-orders-openapi.yaml (DemoShop Orders API: login, create, list, get and cancel orders). Generate the file without waiting for plan approval; I'll review it afterwards.
- Read your context and instructions
- Compiled the qa api test
Source spec: ../demoshop-orders-openapi.yaml
Generated: 2026-11-28
Base URL: http://localhost:8790/v1
Coverage depth: Full
Total test cases: 161
Summary
| Module | Endpoints | Happy | Validation | Auth | NotFound | Boundary | Security | Total |
|---|---|---|---|---|---|---|---|---|
| Auth | 1 | 3 | 10 | 2 | 0 | 11 | 5 | 31 |
| Orders | 4 | 25 | 32 | 16 | 4 | 39 | 14 | 130 |
Test data & pre-requisites
{{customerEmail}}/{{customerPassword}}— fill by hand: an existing account with rolecustomer(the main customer; rows act as this user by default).{{otherCustomerEmail}}/{{otherCustomerPassword}}— fill by hand: a second, different account with rolecustomer(used for BOLA rows).{{adminEmail}}/{{adminPassword}}— fill by hand: an existing account with roleadmin.{{token}}— main customer token, produced by TC_AUTH_POST_001 (primary token; the API is customer-facing).{{customerId}}— produced by TC_AUTH_POST_001.{{otherUserToken}}/{{otherCustomerId}}— produced by TC_AUTH_POST_002.{{adminToken}}— produced by TC_AUTH_POST_003.{{createdOrderId}}— produced by TC_ORDERS_POST_001;{{fullOrderId}}— produced by TC_ORDERS_POST_002;{{otherCustomerOrderId}}— produced by TC_ORDERS_POST_003;{{ordersBefore}}— produced by TC_ORDERS_GET_010.{{paidOrderId}}— fill by hand: id of an order that belongs to the main customer and has statuspaid(the API has no endpoint that moves an order topaid).{{expiredToken}}— fill by hand: a token of the main customer issued more than 1 hour ago (the spec says tokens are valid for 1 hour).{{tamperedToken}}— fill by hand: a valid token with its payload changed and the old signature kept (only meaningful if tokens are JWT).{{algNoneToken}}— fill by hand: a token re-signed withalg: none(only meaningful if tokens are JWT).- Seeded data: product
101exists and can be ordered; couponSAVE10is valid (both are the spec'sexamplevalues). - Setup order: log in as main customer (TC_AUTH_POST_001) → log in as the other customer (TC_AUTH_POST_002) → log in as admin (TC_AUTH_POST_003) → Orders module.
Blocking items — resolve before running
- Accounts:
{{customerEmail}}/{{customerPassword}},{{otherCustomerEmail}}/{{otherCustomerPassword}},{{adminEmail}}/{{adminPassword}}— every Orders row depends on the tokens saved by the three login rows. - Seeded data: product
101and couponSAVE10must exist (all create rows use them). {{paidOrderId}}— an order of the main customer with statuspaid(TC_ORDERS_DELETE_003, TC_ORDERS_GET_051).{{expiredToken}},{{tamperedToken}},{{algNoneToken}}— TC_ORDERS_GET_023, TC_ORDERS_GET_024, TC_ORDERS_DELETE_006.
Assumptions
- Base URL: the spec lists
https://api.example.com/v1(described asproduction) andhttp://localhost:8790/v1(local). No server is marked as a test environment and every server is local or a placeholder, so the first one without aprod/productionword was chosen: the local server. No production warning (local host). - The session could not ask questions; the defaults of the skill were taken: run the whole spec at Full depth, no plan approval step needed (5 endpoints).
- Statuses declared without an error schema: 401 on every operation, 403 on
GET /orders/{orderId}andDELETE /orders/{orderId}. Rows with these statuses assert that the protected data is absent instead of a message. DELETE /orders/{orderId}is treated as a soft delete ("Cancel (delete) an order", 204 "Cancelled",cancelledis an order status): after cancelling, the order stays readable withstatus=cancelled, and a second cancel is rejected with 400 "The order is not pending".- Status codes not declared, chosen by convention: 404 (or 400) for an unknown
productId/couponCodeinPOST /orders; 400/404 for a malformedorderId; 413 for oversized bodies; 415 for a missing or wrong Content-Type; 405 for undeclared methods; 406 forAccept: application/xml; 403 for an admin placing an order. 409, 422 and 429 are never used because the spec does not declare them. - The spec does not say whether the login token is a JWT; tampered and
alg: nonerows are kept with[NEEDS REVIEW]. - The spec does not say whether
quantity× product price is checked;totalis only asserted to be a number and not the client-sent value.
[Excerpt. The file holds 161 rows in 5 endpoint tables; one full table is shown below; selected rows of other tables are in the gallery screenshots.]
Module: Orders
Endpoint: GET /orders/{orderId}
Description: Get one order. Customers can read only their own orders; admins can read any order.
Auth required: Yes (bearerAuth, roles: customer (own orders), admin (any order))
Inputs: orderId — path, integer, required, min 1
| TC_ID | Module | Endpoint | Method | Test Type | Priority | Pre-condition | Description | Headers | Path/Query Params | Request Body | Expected Status | Expected Response | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TC_ORDERS_GET_037 | Orders | /orders/{orderId} | GET | Happy | P1 | Order {{createdOrderId}} created by TC_ORDERS_POST_001 | Customer reads own order; stored as sent; expect 200 | Authorization: Bearer {{token}} | orderId={{createdOrderId}} | N/A | 200 | order.id="{{createdOrderId}}"; order.productId=101; order.quantity=2; order.status="pending"; order.customerId="{{customerId}}"; header Content-Type contains "application/json" | [SIDE-EFFECT] Depends on TC_ORDERS_POST_001 |
| TC_ORDERS_GET_038 | Orders | /orders/{orderId} | GET | Happy | P2 | Order {{fullOrderId}} created by TC_ORDERS_POST_002 | Order created with all fields keeps its optional fields; expect 200 | Authorization: Bearer {{token}} | orderId={{fullOrderId}} | N/A | 200 | order.quantity=3; order.note="Please deliver after 5 PM"; order.couponCode="SAVE10" | [SIDE-EFFECT] Depends on TC_ORDERS_POST_002 |
| TC_ORDERS_GET_039 | Orders | /orders/{orderId} | GET | Happy | P1 | {{adminToken}}; order {{otherCustomerOrderId}} from TC_ORDERS_POST_003 | Admin reads another customer's order; expect 200 | Authorization: Bearer {{adminToken}} | orderId={{otherCustomerOrderId}} | N/A | 200 | order.id="{{otherCustomerOrderId}}"; order.customerId="{{otherCustomerId}}" | Business rule: admins can read any order |
| TC_ORDERS_GET_040 | Orders | /orders/{orderId} | GET | Auth | P1 | {{token}}; order {{otherCustomerOrderId}} belongs to the other customer | BOLA: customer reads another customer's order; expect 403 | Authorization: Bearer {{token}} | orderId={{otherCustomerOrderId}} | N/A | 403 | order not present in response | N/A |
| TC_ORDERS_GET_041 | Orders | /orders/{orderId} | GET | Auth | P1 | None | Read an order without Authorization header; expect 401 | N/A | orderId={{createdOrderId}} | N/A | 401 | order not present in response | N/A |
| TC_ORDERS_GET_042 | Orders | /orders/{orderId} | GET | Auth | P1 | None | Read an order with an invalid token; expect 401 | Authorization: Bearer invalid_token_xyz | orderId={{createdOrderId}} | N/A | 401 | order not present in response | N/A |
| TC_ORDERS_GET_043 | Orders | /orders/{orderId} | GET | NotFound | P1 | {{token}} | Read an order id that does not exist; expect 404 | Authorization: Bearer {{token}} | orderId=99999999 | N/A | 404 | error (string); order not present in response | N/A |
| TC_ORDERS_GET_044 | Orders | /orders/{orderId} | GET | Validation | P2 | {{token}} | 'orderId' not a number; expect 400 or 404 | Authorization: Bearer {{token}} | orderId=abc | N/A | 400/404 | order not present in response [NEEDS REVIEW: status 400 not declared for this operation] | N/A |
| TC_ORDERS_GET_045 | Orders | /orders/{orderId} | GET | Boundary | P2 | {{token}} | 'orderId' 0 (min 1); expect 400 or 404 | Authorization: Bearer {{token}} | orderId=0 | N/A | 400/404 | order not present in response [NEEDS REVIEW: status 400 not declared for this operation] | N/A |
| TC_ORDERS_GET_046 | Orders | /orders/{orderId} | GET | Boundary | P2 | {{token}} | 'orderId' -1; expect 400 or 404 | Authorization: Bearer {{token}} | orderId=-1 | N/A | 400/404 | order not present in response [NEEDS REVIEW: status 400 not declared for this operation] | N/A |
| TC_ORDERS_GET_047 | Orders | /orders/{orderId} | GET | Boundary | P3 | {{token}} | 'orderId' decimal 1.5; expect 400 or 404 | Authorization: Bearer {{token}} | orderId=1.5 | N/A | 400/404 | order not present in response [NEEDS REVIEW: status 400 not declared for this operation] | N/A |
| TC_ORDERS_GET_048 | Orders | /orders/{orderId} | GET | Boundary | P3 | {{token}} | 'orderId' int32 max + 1; expect 400 or 404, never 500 | Authorization: Bearer {{token}} | orderId=2147483648 | N/A | 400/404 | order not present in response [NEEDS REVIEW: no maximum declared for orderId] | N/A |
| TC_ORDERS_GET_049 | Orders | /orders/{orderId} | GET | Security | P2 | {{token}} | SQL injection in the order id; expect 400 or 404 without a DB error | Authorization: Bearer {{token}} | orderId=1 OR 1=1 | N/A | 400/404 | no SQL error leaked; order not present in response [NEEDS REVIEW: status 400 not declared for this operation] | N/A |
| TC_ORDERS_GET_050 | Orders | /orders/{orderId} | GET | Happy | P1 | TC_ORDERS_DELETE_001 cancelled {{createdOrderId}} | Cancelled order stays readable with status cancelled; expect 200 | Authorization: Bearer {{token}} | orderId={{createdOrderId}} | N/A | 200 | order.status="cancelled" [NEEDS REVIEW: soft delete assumed — confirm the order is not removed (404)] | [SIDE-EFFECT] Depends on TC_ORDERS_DELETE_001 [ORDER: run after TC_ORDERS_DELETE_001] |
| TC_ORDERS_GET_051 | Orders | /orders/{orderId} | GET | Happy | P2 | TC_ORDERS_DELETE_003 was rejected | The paid order is still paid after the rejected cancel; expect 200 | Authorization: Bearer {{token}} | orderId={{paidOrderId}} | N/A | 200 | order.status="paid" | [SIDE-EFFECT] Verifies TC_ORDERS_DELETE_003 [ORDER: run after TC_ORDERS_DELETE_003] |
| TC_ORDERS_GET_052 | Orders | /orders/{orderId} | GET | Happy | P2 | TC_ORDERS_DELETE_004 to TC_ORDERS_DELETE_006 were rejected | The order is still pending after the unauthenticated cancels; expect 200 | Authorization: Bearer {{token}} | orderId={{fullOrderId}} | N/A | 200 | order.status="pending" | [SIDE-EFFECT] Verifies TC_ORDERS_DELETE_004, TC_ORDERS_DELETE_005, TC_ORDERS_DELETE_006 [ORDER: run after TC_ORDERS_DELETE_006] |
| TC_ORDERS_GET_053 | Orders | /orders/{orderId} | GET | Happy | P2 | TC_ORDERS_DELETE_007 was rejected | The other customer's order is still pending after the BOLA cancel; expect 200 | Authorization: Bearer {{otherUserToken}} | orderId={{otherCustomerOrderId}} | N/A | 200 | order.status="pending" | [SIDE-EFFECT] Verifies TC_ORDERS_DELETE_007 [ORDER: run after TC_ORDERS_DELETE_007] |
[Tables for POST /auth/login (31 rows), POST /orders (61), GET /orders (39) and DELETE /orders/{orderId} (13) and the Coverage matrix are omitted here.]
Not covered
- 409, 422 and 429 are not declared in the spec: duplicate / state conflicts use 400, and login brute-force / rate limiting (API2) is not tested because no 429 is declared.
- Login: uppercase email and case-changed password for the fill-by-hand accounts — would need extra fill-by-hand variables (
{{customerEmailUppercase}},{{customerPasswordCaseChanged}}); left out to keep setup small. - Login: "same error for wrong email and wrong password" (no user enumeration) needs a comparison across two rows — compare TC_AUTH_POST_013 and TC_AUTH_POST_014 by hand.
- Login:
[]body, no body and wrong Content-Type — covered by TC_ORDERS_POST_020, TC_ORDERS_POST_021, TC_ORDERS_POST_022 (D1, body handling tested on the main create endpoint). Mass assignment / privilege escalation does not apply (no role-like field in the login body). - Token variants (no token, wrong scheme, expired, tampered) on endpoints other than
GET /orders— covered by TC_ORDERS_GET_019 to TC_ORDERS_GET_024 (D1); other endpoints keep the no-header and invalid-token smoke rows. - Token of a deleted / deactivated user, token issued before a password change or logout — the API has no user-delete, password-change or logout endpoint.
notewrong type (optional free text, D6). NoSQL operator objects incouponCode— covered by TC_AUTH_POST_028 (D8, one type-confusion row per API). Oversized payloads on other endpoints (D7: login + main create only).productId"deleted earlier in the run" — the API has no product endpoints.statusfilter valuespaidandshipped— descriptive enum;pending(TC_ORDERS_GET_006) andcancelled(TC_ORDERS_GET_012) cover the filter.orderIdexactly at the minimum (1) — the owner of order 1 is unknown in the seed data.totalcorrectness (price × quantity, coupon discount) — the spec gives no prices or discount rules.Locationheader value — only its presence is asserted (TC_ORDERS_POST_001); the spec does not define the URL format.- 403 role matrix: no role is denied any operation by the spec; whether an admin may place an order is TC_ORDERS_POST_004.
- XXE / XML bodies, file uploads, URL fields, header injection — the API has none of these inputs. ETag / 304 — no ETag declared.
- Runtime concerns: concurrent cancels of the same order, double-submit of the same order, load — not informed by the spec.
Checker report (…-coverage-report.md, written by the bundled script; Totals and Operation coverage):
- Verdict: PASS
Totals
- Rows: 161
- By Test Type: Happy 28, Validation 42, Auth 18, NotFound 4, Boundary 50, Security 19
- By Priority: P1 42, P2 82, P3 37
- Rows with [NEEDS REVIEW]: 47
- Operations with a Happy row: 5/5 (100%)
- Operations without gaps: 5/5 (100%)
Operation coverage
| Operation | Rows | Happy | Validation | Auth | NotFound | Boundary | Security | Gaps |
|---|---|---|---|---|---|---|---|---|
POST /auth/login | 30 | 3 | 9 | 2 | 0 | 11 | 5 | — |
GET /orders | 36 | 12 | 7 | 6 | 0 | 8 | 3 | — |
POST /orders | 61 | 4 | 18 | 3 | 2 | 25 | 9 | — |
GET /orders/{orderId} | 17 | 7 | 1 | 3 | 1 | 4 | 1 | — |
DELETE /orders/{orderId} | 12 | 2 | 3 | 4 | 1 | 2 | 0 | — |
Rows for a method the spec does not declare on the path (405 / HEAD / OPTIONS checks): 5 (TC_AUTH_GET_001, TC_ORDERS_HEAD_001, TC_ORDERS_OPTIONS_001, TC_ORDERS_PUT_001, TC_ORDERS_PATCH_001) — counted in the totals and the Summary table, not in this table.
Connects securely to your tools. The creator never sees your data.
About this skill
A basic API test set catches typos in validation. The bugs that reach production are usually elsewhere: a customer who can read someone else's order, a page-size default that is never applied, an unknown coupon code that is silently accepted. API Test Design Pro reads your OpenAPI/Swagger spec and writes a deep suite, field by field and endpoint by endpoint, so those cases are in the file before anyone runs it.
What it does
- Reads OpenAPI 3.x or Swagger 2.0 (JSON or YAML, file, URL or pasted) and builds a field inventory per endpoint: type, format, required/nullable, limits, defaults, readOnly/writeOnly, roles, business rules in descriptions, which statuses declare an error schema.
- Applies fixed coverage matrices to every input and endpoint, then removes duplicates by documented rules: Happy (incl. defaults and roles), Validation, Auth (missing, invalid, expired, tampered and
alg:nonetokens, 403 per denied role, BOLA), NotFound, Boundary (exactly at each limit, exploratory rows where the spec declares none; just-outside values are Validation rows) and Security (SQL/NoSQL injection, XSS, template injection, SSRF and path traversal where the field allows it, mass assignment, privilege escalation, oversized and malformed bodies, mapped to the OWASP API Top 10). - Checks behavior, not just status codes: side-effect rows (the order is still pending after a rejected cancel, the cancelled order reads as
cancelled), business rules from the spec's descriptions, HTTP-level rows (405 for undeclared methods, 415, HEAD/OPTIONS). - Writes machine-readable expectations: Expected Responses are written as assertion clauses wherever a clause can hold (
`order.status`="pending",`order` not present in response,no SQL error leaked, header checks), and tokens and ids are chained withSave … as {{var}}, so a converter can turn each row into a request with real assertions. - Never invents: no made-up endpoints, fields or response schemas. Where the spec declares no limit it uses conventional exploratory values, and undeclared statuses use the convention; both are flagged
[NEEDS REVIEW]. Questions the spec leaves open become probe rows marked for review. - Checks itself with a bundled script: cell counts, duplicate IDs, valid Test Type and Priority values, variables used but never produced, Summary totals, endpoints not in the spec, and per-operation gaps (no Happy, Auth, NotFound, Validation or Security row), with a verdict (PASS / CONDITIONAL / FAIL) and a coverage report you can attach to a review.
- Plans first on large APIs: more than 5 endpoints → a coverage plan per endpoint for you to approve before it writes (unless you tell it to go ahead).
Why use this skill
Asking an agent to "write API tests" gives a different set every run, guessed fields and expectations that assert nothing. This skill follows the same matrices every time, takes its data and limits from the spec, and hands you one reviewable file plus a checker report that shows what is covered and what was left out on purpose, and why.
Free Lite vs Pro
The free QA API Test Design Lite writes the core set: happy paths, validation, declared limits, basic 401/403 and 404. Pro adds security payloads, BOLA, token variants, business rules, side-effect and HTTP-level rows and the checker script. On the same 5-endpoint demo API with 3 planted bugs: Lite wrote 55 rows and caught 1 bug; Pro wrote 161 rows and caught all 3.
Use cases
- Designing a full regression and security test suite for a new or changed REST API
- Finding authorization gaps (BOLA/IDOR, role checks) before release
- Finding spec gaps (undeclared statuses, missing limits) through rows flagged [NEEDS REVIEW]
- Preparing a test set to run in Postman or Newman in CI
- API test documentation with a coverage report for QA review
Output
Two files in test-case-api/, sharing one prefix yyyy-mm-dd_hh-mm-ss-<api-name>:
<prefix>.md: header (source spec, base URL, totals), Summary, test data and blocking items, Assumptions, one 14-column table per endpoint (TC_ID, Module, Endpoint, Method, Test Type, Priority, Pre-condition, Description, Headers, Path/Query Params, Request Body, Expected Status, Expected Response, Notes), a Coverage matrix per field, and Not covered with reasons<prefix>-coverage-report.md: the checker's verdict, totals and per-operation coverage
The chat reply stays short: paths, totals per Test Type, the verdict, and the blocking items (credentials, seeded ids) to fill before running. A Postman converter (available separately) can turn the file into a collection.
Requirements
- An OpenAPI 3.x or Swagger 2.0 spec
- Python 3.8+ for the bundled checker (standard library only; PyYAML is used if installed). If you prefer no scripts, the agent does the checks by hand and says the verdict is unverified.
Save with the bundle
Buying both? The QA/QC API Testing Pro bundle has the test design skill and the Postman converter for $9.99 instead of $11.99 (bundles are bought on the website). You own each skill separately.
Language
Written in English; descriptions, notes, assumptions and the chat reply follow your language (English or Vietnamese). Column headers, Test Types, assertion clauses and markers stay in English so tools can parse the file.
License
For your personal use under the Agensi license; please do not redistribute or resell.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.
- It needs an OpenAPI 3.x or Swagger 2.0 spec. From a plain description it asks for the spec and writes nothing.
- It writes test cases, not runnable code; it never calls your API. To run them, convert the file (e.g. to a Postman collection) or automate them yourself.
- Expectations follow the spec. Where the spec is silent, rows use conventions and are marked [NEEDS REVIEW], so review them before trusting a failure.
- Credentials, seeded ids and special tokens (expired, tampered) are variables for you to fill; it never invents real-looking credentials.
- Runtime concerns (race conditions, load, rate limits without a declared 429) are listed under "Not covered", not tested.
- Files are long: the 5-endpoint demo has 161 rows. APIs with more than 5 endpoints get a coverage plan to approve first.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3.8+
Permissions
File Scopes
Terminal: runs one bundled Python script (standard library only) that checks the test case file for format, chaining and coverage. Read Files: the spec you point to. Write Files: the test case file and the coverage report in test-case-api/. Network: only to download a spec you give as a URL. The file contains security test payloads (SQL injection, XSS, JWT alg:none…) as test data in tables; the skill never calls your API.