/qa-api-testing:postman-collectionsfrom qa-api-testing
Repairs Postman/Newman CI runs: fixes missing HTML reporter, rate-limiting, and reporting config for API tests in CI.
Ships in qa-api-testing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Newman is Postman's official CLI for running collections headlessly in CI
(newman-readme). The shape is two-step: author the collection in the
Postman app (or import an OpenAPI spec), save it as collection.json, then run
newman run collection.json in CI and emit JUnit / JSON for gating.
This skill covers the headless Newman side. GUI authoring inside Postman is out of scope; its reference is learning.postman.com.
*.postman_collection.json (or the team
exports collections to collections/).newman run with structured reporter output
for PR gating.If the team uses TypeScript / JavaScript and prefers code-first
authoring, evaluate
tavern-testing (YAML) or
karate-testing (Karate DSL) before
adopting Postman/Newman - those keep tests next to source code rather
than in a separate JSON artifact.
npm install -g newman
(Per newman-readme.)
For per-project install (preferred for CI determinism):
npm install --save-dev newman
For the HTML reporter (external, separate install):
npm install --save-dev newman-reporter-htmlextra
The canonical invocation (newman-readme):
newman run <collection-file-source> [options]
<collection-file-source> can be:
./collections/orders.postman_collection.json.https://api.getpostman.com/collections/....The flags you reach for first: -e/--environment, -r/--reporters
(cli,json,junit,html), --reporter-junit-export <path>, --bail [folder|failure], and --timeout-request <ms>. The full flag table (per
newman-readme) is in
references/newman-reference.md.
newman run examples/sample-collection.json \
-e environment.json \
-d data.csv \
-r cli,json,junit \
--timeout-request 5000 \
--reporter-junit-export results.xml \
--reporter-json-export results.json \
--bail folder
(Adapted from newman-readme.)
The four built-in / canonical reporters per newman-readme:
| Reporter | Purpose |
|---|---|
cli | Terminal output; enabled by default. |
json | Full JSON summary of every request and assertion result. |
junit | JUnit XML - consumable by GitHub Actions, GitLab, Jenkins. |
html | Static HTML report; requires newman-reporter-htmlextra. |
JUnit is the canonical CI choice - every major CI platform ingests JUnit XML, surfaces test counts on the run summary, and lets the team click through to per-assertion failures.
For richer per-test details (which assertion in which folder failed
with which response), pair junit with json and upload both as
build artifacts.
Tests live in each request's Tests tab and run in a sandboxed JS
environment with pm.* globals:
pm.test('status is 200', () => {
pm.response.to.have.status(200);
});
pm.test('body is JSON with .order_id', () => {
const json = pm.response.json();
pm.expect(json).to.have.property('order_id').that.is.a('number');
});
pm.test('saves order_id for next request', () => {
pm.collectionVariables.set('order_id', pm.response.json().order_id);
});
Each pm.test('...', () => {}) call becomes one entry in the JUnit
XML / JSON output - name them clearly so the CI run summary is
readable.
A GitHub Actions workflow that runs newman, exports JUnit + JSON, uploads
both as artifacts, and surfaces results in the run summary - with if: always()
on the upload and reporter steps so the reports survive a failing collection -
is in references/newman-reference.md.
The common Newman anti-patterns and their fixes - hard-coded URLs and tokens in
the collection JSON, running against production, cascading shared-state
pm.test blocks, one giant 200-request collection, and missing --bail - are
tabulated in references/newman-reference.md.
karate-testing or
tavern-testing.pm.*
sandbox provides chai / lodash / cheerio pre-loaded; for richer
logic, consider Karate or Tavern.newman run syntax, flags,
reporters, example invocation.tavern-testing - YAML alternative.karate-testing - DSL alternative.schemathesis-fuzzing -
property-based fuzzing as a complement (not replacement) for
example-based collections.evals/cascading-failure-fanout/criteria.json (opens in a new tab)evals/cascading-failure-fanout/task.md (opens in a new tab)evals/ci-junit-reporting/criteria.json (opens in a new tab)evals/ci-junit-reporting/task.md (opens in a new tab)evals/credentials-in-collection-json/criteria.json (opens in a new tab)evals/credentials-in-collection-json/task.md (opens in a new tab)evals/forked-collections-per-environment/criteria.json (opens in a new tab)evals/forked-collections-per-environment/task.md (opens in a new tab)evals/html-report-never-produced/criteria.json (opens in a new tab)evals/html-report-never-produced/task.md (opens in a new tab)evals/pricing-matrix-from-scratch/criteria.json (opens in a new tab)evals/pricing-matrix-from-scratch/task.md (opens in a new tab)evals/rate-limited-run-hangs/criteria.json (opens in a new tab)evals/rate-limited-run-hangs/task.md (opens in a new tab)evals/report-rows-name-nothing/criteria.json (opens in a new tab)evals/report-rows-name-nothing/task.md (opens in a new tab)evals/single-run-wall-clock/criteria.json (opens in a new tab)evals/single-run-wall-clock/task.md (opens in a new tab)evals/test-script-cannot-load-module/criteria.json (opens in a new tab)evals/test-script-cannot-load-module/task.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/api-chaos-runnerUse when an existing API test suite should be rerun under network faults to prove retries, timeouts, circuit breakers and fallbacks work. Injects latency, timeouts, dropped connections, bandwidth caps and packet loss with Toxiproxy and reports which assertions break under which fault./karate-testingUse when a JVM project wants HTTP API tests written as Karate .feature files instead of Java code: the Gherkin-style DSL, match with fuzzy validators, JUnit 5 and Maven runs, and JUnit XML for CI. For Java fluent tests use restassured-testing; for Python YAML tests use tavern-testing./restassured-testingUse whenever Java/JVM API tests need writing or fixing: loose assertions that let an empty 200 pass, slow sequential suites, or hand-rolled HTTP clients. Writes REST Assured given/when/then tests: status, JSON and XML path checks, auth, reusable specs, schema checks, Maven or Gradle and CI reports./restler-fuzzingUse when a stateful REST API (resources created, read, changed and deleted in sequence) needs fuzzing that finds multi-step bugs stateless fuzzers miss. Runs Microsoft RESTler from an OpenAPI spec (compile, test, fuzz-lean, fuzz) and reports 5xx errors, resource leaks and hierarchy violations./schemathesis-fuzzingUse for any request to generate API tests from an OpenAPI or GraphQL schema, or to find inputs that make an API return 500 that hand-written tests miss: Schemathesis fuzzes every endpoint for 5xx errors and schema violations from the CLI or pytest, picks the conformance checks and gates CI as the API evolves.npx claudepluginhub testland/qa --plugin qa-api-testingOther plugins' skills for the same job