- Home
- Skills
- Testing & Debugging
- QA Postman Collection Generator: Runnable Tests in Newman
More screenshots
Works with the AI Agents you already use
QA Postman Collection Generator: Runnable Tests in Newman
A reviewed table of API test cases is only half the job: someone still has to build the requests, write the assertions and wire tokens and ids from one call to the next.
$5
QA Postman Collection Generator: Runnable Tests in Newman
Example session with this skill installed
Convert test-case-api/2026-11-28_20-47-00-demoshop-orders-api.md into a Postman collection and environment. Convert without asking; I'll fill in the variables myself.
- Read your context and instructions
- Compiled the qa postman collection
Converter output (the bundled script; the agent summarises it and explains every warning in its hand-over):
Parsed 161 test case rows from 2026-11-28_20-47-00-demoshop-orders-api.md.
Collection: DemoShop Orders API Test Suite
Base URL: http://localhost:8790/v1
Modules: 2
Folder mode: flat (file order; 8 [ORDER] row(s) moved)
TC_ORDERS_GET_009 -> after TC_ORDERS_POST_002
TC_ORDERS_GET_010 -> after TC_ORDERS_POST_022
TC_ORDERS_GET_011 -> after TC_ORDERS_POST_023
TC_ORDERS_GET_012 -> after TC_ORDERS_DELETE_001
TC_ORDERS_GET_050 -> after TC_ORDERS_GET_012
TC_ORDERS_GET_051 -> after TC_ORDERS_DELETE_003
TC_ORDERS_GET_052 -> after TC_ORDERS_DELETE_006
TC_ORDERS_GET_053 -> after TC_ORDERS_DELETE_007
Total requests: 161
Variables: baseUrl, customerEmail, customerPassword, token, customerId, otherCustomerEmail, otherCustomerPassword, otherUserToken, otherCustomerId, adminEmail, adminPassword, adminToken, createdOrderId, fullOrderId, otherCustomerOrderId, ordersBefore, expiredToken, tamperedToken, paidOrderId, algNoneToken
Auto-set variables: token, customerId, otherUserToken, otherCustomerId, adminToken, createdOrderId, fullOrderId, otherCustomerOrderId, ordersBefore
{{token}} <- token (TC_AUTH_POST_001, Save `token`)
{{customerId}} <- user.id (TC_AUTH_POST_001, Save `user.id`)
{{otherUserToken}} <- token (TC_AUTH_POST_002, Save `token`)
{{otherCustomerId}} <- user.id (TC_AUTH_POST_002, Save `user.id`)
{{adminToken}} <- token (TC_AUTH_POST_003, Save `token`)
{{createdOrderId}} <- order.id (TC_ORDERS_POST_001, Save `order.id`)
{{fullOrderId}} <- order.id (TC_ORDERS_POST_002, Save `order.id`)
{{otherCustomerOrderId}} <- order.id (TC_ORDERS_POST_003, Save `order.id`)
{{ordersBefore}} <- total (TC_ORDERS_GET_010, Save `total`)
Manual-fill variables: customerEmail, customerPassword, otherCustomerEmail, otherCustomerPassword, adminEmail, adminPassword, expiredToken, tamperedToken, paidOrderId, algNoneToken
NEEDS REVIEW rows: 47
Schema checks: 132 request(s) validated against ../demoshop-orders-openapi.yaml
Response-time limit: 2000 ms
[WARN] 7 row(s) have text in Expected Response but no recognised assertion clause, so only status/schema/time are checked: TC_ORDERS_POST_004, TC_ORDERS_POST_030, TC_ORDERS_POST_036, TC_ORDERS_POST_038, TC_ORDERS_GET_026, TC_ORDERS_GET_032, TC_ORDERS_GET_035.
Warnings: 1
Written: test-case-api\2026-11-28_20-52-00-demoshop-orders-api-collection.json
Written: test-case-api\2026-11-28_20-52-00-demoshop-orders-api-environment.json
One generated request: TC_ORDERS_GET_040 — BOLA: customer reads another customer's order; expect 403 (Tests tab; the Bearer token comes from {{token}}, saved by the login row):
// TC_ID: TC_ORDERS_GET_040 | Priority: P1 | Test Type: Auth
pm.test("Status code is 403", function () {
pm.response.to.have.status(403);
});
pm.test("Response time is under 2000ms", function () {
pm.expect(pm.response.responseTime).to.be.below(2000);
});
let json = null;
try { json = pm.response.json(); } catch (e) { json = null; }
pm.test("order is not present in response", function () {
const found = [];
(function walk(o, path) {
if (o === null || typeof o !== "object") return;
Object.keys(o).forEach(function (k) {
if (k === "order") found.push(path + k);
walk(o[k], path + k + ".");
});
})(json, "");
pm.expect(found, "found at").to.be.empty;
});
pm.test("No sensitive data leaked in error response", function () {
const leaked = [];
(function walk(o) {
if (o === null || typeof o !== "object") return;
Object.keys(o).forEach(function (k) {
if (/^(password|password_hash|passwordhash|hash|salt|secret)$/i.test(k)) leaked.push(k);
walk(o[k]);
});
})(json);
pm.expect(leaked, "sensitive keys in response").to.be.empty;
});
Run on the DemoShop mock API (3 planted bugs; manual-fill variables passed as environment values) with the small test runner bundled in scripts/test, not Newman; Newman and the Postman Runner report the same pm.test names in their own format. Only the failed requests are shown; the other 157 passed (the error-message check compares the response text in lower case):
FAIL TC_ORDERS_POST_015 — 'quantity' 0 (min 1); expect 400 [201]
✗ Status code is 400: expected response to have status code 400 but got 201
✗ Error message indicates: quantity is invalid: expected "{\"order\":{\"id\":30,\"customerid\":2,\"productid\":101,\"quantity\":0,\"note\":null,\"status\":\"pending\",\"total\":0,\"createdat\":\"2026-11-28t13:52:48.679z\"}}" to satisfy the condition
FAIL TC_ORDERS_POST_051 — Use a well-formed coupon code that does not exist; expect 400 or 404 [201]
✗ Status code is one of [400, 404]: expected [400,404] to include 201
✗ order is not present in response: found at: expected ["order"] to be empty
FAIL TC_ORDERS_GET_002 — Omit 'limit'; default 20 applies; expect 200 [200]
✗ items length <= 20: expected 43 to be at most 20
FAIL TC_ORDERS_GET_040 — BOLA: customer reads another customer's order; expect 403 [200]
✗ Status code is 403: expected response to have status code 403 but got 200
✗ order is not present in response: found at: expected ["order"] to be empty
Requests: 161 (157 passed, 4 failed) · Assertions: 679 (7 failed)
Three failures are the planted bugs: quantity=0 accepted (spec: min 1), the default limit of 20 ignored, and a customer reading another customer's order (BOLA). The fourth, TC_ORDERS_POST_051, is a probe row: the spec does not say what happens to an unknown coupon code, so the test case file marked it [NEEDS REVIEW] and the run shows the API accepts it. That is a question for the spec owner, not a converter error.
Connects securely to your tools. The creator never sees your data.
About this skill
A reviewed table of API test cases is only half the job: someone still has to build the requests, write the assertions and wire tokens and ids from one call to the next. Postman Collection Generator does that with a bundled, tested Node script, so every row becomes a request in the same way every time, ready for the Postman Collection Runner or Newman in CI.
What it does
- One request per row, nothing dropped or merged: method, URL with path and query params, headers, auth and body from each row. JSON, form-data (with file uploads), urlencoded and raw XML/text bodies; Bearer, Basic, API key and cookie credentials.
- Real assertions from the Expected Response: equality, type and JWT format, arrays (
items[*].status), lengths, "not present in response", empty body, headers, error-message wording,no SQL error leaked. Plus on every request: the status code, the response time (default 2000 ms) and, when your OpenAPI/Swagger spec is available, the response schema when the spec describes the operation and the status returned (132 of 161 requests in the demo). Auth rows also check that nopassword,hash,saltorsecretfield appears in the JSON. - Chains values explicitly: tokens and created ids saved by one request (Save
order.idas{{createdOrderId}}) are used by the next; nothing is guessed from endpoint names. Rows that use{{runId}}/{{runNum}}get a new unique value on every run, so they can be re-run without "already exists" errors. - Keeps the run order right: rows marked
[ORDER: run after …]are moved to their place; the dry run warns when a folder layout would use a variable before it is saved. - Checks before writing: a dry run reports rows with a wrong cell count, variables with no source, totals that do not match, a base URL that looks like production, and rows whose expectation produced no assertion. For 20 rows or more it shows a summary and waits for your OK.
- No secrets in files: the environment file holds the base URL and every variable the collection uses, all other values empty; the hand-over says which ones you fill (credentials, special tokens, seeded ids) and which are set by earlier requests.
Why use this skill
Asking an agent to write a Postman collection by hand gives JSON that differs on every run, misses assertions and breaks chaining. Here the agent never writes the JSON: it runs one standalone script (Node 18+, no npm packages, covered by regression tests) and explains its output to you.
Works with the free QA API Test Design Lite
The free QA API Test Design Lite writes test case files in the same 14-column format; they convert as they are. A deeper test design skill with security rows and a checker is available separately.
Use cases
- Turning reviewed API test cases into a runnable Postman collection
- Running an API regression suite in CI with Newman (JUnit report)
- Adding response-schema checks from an OpenAPI spec to every request
- Re-running the same API suite on staging after every deployment
- Handing developers a collection that reproduces a failing API case
Output
Two files next to your test case file (new names on every run, nothing overwritten):
<date-time>-<api-name>-collection.json: Postman Collection v2.1, flat or grouped by Module › Endpoint › Test Type<date-time>-<api-name>-environment.json:baseUrlplus every variable the collection uses (empty values)
The hand-over in chat: request count, folder mode, every warning explained, the variables to fill and the ones chained automatically, and the commands to run it in Postman or Newman.
Requirements
- Node.js 18+ (no npm packages). Postman or Newman to run the collection.
- A test case file in the 14-column Markdown format (TC_ID, Module, Endpoint, Method, Test Type, Priority, Pre-condition, Description, Headers, Path/Query Params, Request Body, Expected Status, Expected Response, Notes). Another format: the agent explains the format and offers to rewrite your file first.
- Optional: the OpenAPI/Swagger spec (file or URL) for schema checks.
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; the chat summary and explanations follow your language (English or Vietnamese). Request names come from your file as written; generated test names and comments are English.
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 converts an existing test case file in the 14-column Markdown format; it does not design test cases. Other formats must be rewritten into it first (the agent offers to do that).
- It writes the collection; it does not run it. Run it in Postman or Newman.
- Only the documented assertion clauses become tests. Free text in Expected Response asserts nothing and is not copied into the collection (it stays in your test case file); the hand-over lists those rows and offers a rewrite into clauses.
- Values pass between requests only through explicit Save / Produces notes; run the collection in order.
- Credentials, special tokens and seeded ids must be filled in the environment before running.
- Postman Collection v2.1 only; no Insomnia, Bruno or code (Jest, pytest) output.
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
Node.js 18+
Permissions
File Scopes
Terminal: runs one bundled Node script (no npm packages) that reads your test case file and writes a Postman collection and environment next to it. Network: only when you give the spec as a URL; the script downloads it with Node's built-in fetch in a child Node process. It never calls your API; you run the collection in Postman or Newman. scripts/test (for maintainers, not needed to convert) holds regression tests that start Node child processes and write to the OS temp folder, a local mock HTTP server, and a small runner that sends a collection's requests to a URL you give.