/postman:application-testingfrom Postman
Connects Playwright end-to-end tests to Postman by capturing network traffic, generating collections, matching against contracts, and measuring API coverage. Runs `postman application test` and publishes results to Application Inventory.
Ships in Postman. 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.
None: SKILL.md is the whole skill.
Requires a Playwright project in the repository. Without Playwright e2e tests there is nothing to capture — Playwright is the only supported runner.
postman application test does not send its own requests. It:
npx playwright test)pm.test assertions saved in the matched itemsThe question it answers: did my app's actual HTTP calls conform to the collection contract? Not "does this endpoint respond correctly" — for that, use postman collection run.
Application Inventory is where results are published — a Postman dashboard that records each run's Playwright test results alongside captured/matched/assertion counts, giving you a combined view of test health and API contract conformance across runs.
All postman app commands must be run from the repository root — that is where postman.config.cjs, .postman/resources.yaml, and postman/collections/ are expected to live.
Assess each prerequisite against the current state of the repository before taking any action. Most will already be satisfied in an established project; only act on what is actually missing.
This skill applies only when the repository has Playwright e2e tests. Verify that a playwright.config.* file exists and @playwright/test is listed as a project dependency. If neither is present, stop — there is nothing to capture and this skill does not cover Playwright setup.
Publishing results to Postman requires credentials. Authenticate only when workspace publishing is needed:
POSTMAN_API_KEY is in the environment, run postman login --with-api-key "$POSTMAN_API_KEY". This is the expected path in CI and agentic contexts.postman login in an agentic context, as it requires a human to complete a browser flow.If this run does not need to publish results (local debugging, dry run), authentication can be skipped by passing --report-events false.
Publishing to Application Inventory requires a workspace binding. Check .postman/resources.yaml for a workspace.id. Reason about whether publishing is actually needed for this task before treating a missing workspace as a blocker:
workspaces skill to set it up. In a non-interactive context this must be done locally first, then .postman/resources.yaml committed.--report-events false and proceed.Network traffic capture requires the postman-playwright package to be installed and the Playwright config wrapped with withPostman(). Before attempting any setup, check whether it is already configured — postman app setup-capture --dry-run shows the current state without touching files.
Decide what action (if any) is needed based on what the dry run reports:
postman app setup-capture --yes. If automatic patching fails (non-standard config export patterns), fall back to manual installation: install postman-playwright as a dev dependency and wrap the config export with withPostman().Legacy pattern: If the project uses attachNetworkCapture() in spec files instead of withPostman(), that is still supported — do not re-run setup. The CLI detects it automatically. Only migrate to withPostman() if the user asks to upgrade.
postman app test spawns Playwright, which drives the live application — servers must be running before the command starts.
Check playwright.config.* for a webServer entry. If present unconditionally, Playwright manages server startup automatically. If absent or conditional (e.g. gated on an env var), verify the servers are reachable before running. If they are not, check webServer.command, package.json scripts, and any README for the startup command, and surface it to the user.
Before constructing any command, run postman app test --help to confirm the available flags for the installed CLI version. Do not guess flag names.
No postman.config.cjs yet — the first run generates and saves postman.config.cjs, writing these choices as the defaults for all future runs. Confirm both with the user before running:
package.json scripts for a project-specific test command (e.g. npm run test:e2e). Present what you find and ask the user to confirm — the CLI defaults to npx playwright test when a Playwright config is found, but do not assume that is what they want.postman/collections/ and list what is available. Ask the user which collection to use. If none exist, ask whether to generate one from captured traffic.Once confirmed, run postman app test with the appropriate flags (e.g. --target-collection <path> or --generate-collection) — the CLI generates and saves postman.config.cjs automatically. Do not write the config file manually.
Running postman app test without a collection in a non-interactive context exits with code 2 unless a collection source is provided explicitly.
postman.config.cjs exists — the config is the source of truth. Run postman app test without extra flags. Individual config values can be overridden per-run without editing the file; consult postman app test --help for the override flags.
Capture-only mode — when the goal is to stage and review traffic before committing a collection manually, there is a mode that skips collection matching and writes captured traffic as a collection to disk. Use this only as a review step, not the normal run path.
postman.config.cjs)Lives at the repository root. The generated file includes comments explaining every field — read it for the full reference. It stays current with the CLI version installed in the repo.
To edit config for common needs:
commandtargets.default.collectionsfilters (urlPatterns, methods, headers)transformers (config entries that normalize staging/proxy prefixes before the CLI matches captured URLs against the collection)targetsA target is a named set of collections + optional environment. The default target is used when no --target flag is passed. Individual values can be overridden per-run without editing config — consult postman app test --help for the override flags.
If a flag in this skill is unrecognized (e.g. --yes, --generate-collection, --dry-run) or the behaviour described here doesn't match what you see, check the CLI version first:
postman --version
This skill targets the latest CLI release. If the version is outdated, update the CLI, then re-run. The --help output for each command shows the flags actually available in the installed version.
Read the CLI error output first — it names the specific failure and what to fix.
Run with --verbose --no-report-events to see the unmatched URLs without publishing a diagnostic run to Application Inventory. Then:
targets.default.collections in config or override with the target-collection flag.transformers entry in postman.config.cjs to rewrite them before matching.Note — Exit code: The CLI exits with the test runner's exit code (Playwright's), not the Postman assertion pass/fail count. A run where Postman assertions fail but all Playwright
expect()calls pass will exit 0. If you need CI to fail on Postman assertion failures, check the summary table output or the published results.
postman application test captures traffic; it does not drive requests. The test runner (Playwright) drives the app; this command observes and asserts. If no test runner is running, nothing is captured.not matched is not a test failure — it is a coverage gap. Requests the CLI cannot find in a collection run no assertions and do not affect the exit code. A high not-matched count means the collection is incomplete for the traffic the app generates.--report-events false for dry runs or local debugging you do not want recorded.--generate-collection, which generates, tests, and saves to config in one step when no collection is configured.postman app init — it is deprecated. postman app test runs the same setup on first use.postman.config.cjs — the CLI generates it automatically on first run when you pass --target-collection or --generate-collection. Writing it by hand bypasses the CLI's generation logic.State captured / matched / not-matched / assertion counts from the summary table. Note whether results were published to Postman (View results: URL present) or kept local. If debugging a "not captured" issue, confirm which capture format was detected (Playwright JSON report or legacy NDJSON) and which directory the CLI scanned.
Postman docs: https://learning.postman.com/docs/postman-cli/postman-cli-application/#postman-app-test
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
20 skills in this plugin
/ai-readinessUse when assessing or improving how well AI agents can discover, call, and recover from errors with an API. Scores an existing Postman collection or OpenAPI spec and turns measured gaps into contract improvements; supports a separate CI readiness threshold. Use for requests such as "is this API ready for agents"./api-discoveryUse when finding an API or owner, integrating a public provider, locating Postman resources, or investigating consumers and change impact across services. Turns discovered contracts and mocks into reusable dependencies and identifies evidence outside the current checkout. Use for requests such as "who consumes this endpoint"./api-documentationUse when defining or improving an API contract, generating documentation from a collection or OpenAPI spec, publishing API docs, or sharing a documentation link. Makes auth, inputs, responses, and examples reusable by callers, tests, and mocks. Use for requests such as "publish API docs".npx claudepluginhub postmanlabs/postman-plugin --plugin postmanOther plugins' skills for the same job