QA/QC API Testing Pro: From OpenAPI Spec to Newman Run
Two skills that take an API from its OpenAPI spec to a runnable, assertion-checked test suite.
-
QA API Test Design Pro: your agent reads an OpenAPI 3.x or Swagger 2.0 spec and writes a deep, reviewable test case file: validation, roles and BOLA, token variants, OWASP security payloads, business rules, side-effect and HTTP-level rows, with assertion clauses and chained variables. A bundled checker reports format, chaining and per-operation coverage.
-
QA Postman Collection Generator: a bundled, tested Node script turns that file into a Postman collection and environment: one request per row, pm.test assertions from the expected responses, schema checks from your spec, tokens and ids chained between requests. Ready for the Postman Runner or Newman in CI.
Why the bundle: the test design skill writes exactly the 14-column format the converter reads, so the reviewed file becomes a runnable collection in one step. In the demo, a 5-endpoint orders API with 3 planted bugs got 161 test cases; the collection ran 157 passed / 4 failed: all 3 bugs, plus one row flagging a question the spec leaves open.
You own each skill separately and can use either one on its own.
Works with any agent that signs in to Agensi, such as Claude, ChatGPT, Claude Code, Cursor and Codex CLI.
One payment, lifetime access. 2 skills unlock instantly in your library.
What's included
2 skillsFor QA engineers and testers: your agent turns an OpenAPI or Swagger spec into a deep API test suite: validation, roles and BOLA, OWASP security payloads, business rules and side effects, with exact assertions, chained variables and a bundled checker for format and coverage.
For QA engineers and testers: your agent converts a reviewed API test case file (Markdown, 14 columns) into a Postman collection and environment with a bundled, tested script: one request per row, real pm.test assertions, schema checks from your OpenAPI spec and chained tokens and ids.
See it in action
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.
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 these skills and uses them on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every skill in this bundle goes through our trust checks.
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.