Newman
$ newman Official Med RiskNewman executes Postman Collection v2 JSON files directly from the command line or CI pipelines. Using --reporters cli,json and --reporter-json-export, agents can run existing API test suites and inspect assertion failures cleanly.
brew install newman Executes existing Postman collections deterministically in CI/shell without needing a Postman MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --reporters json, --reporter-json-export, --color off, and --bail, though JSON reports can be verbose and collections may run arbitrary pre-request JS.
- Supports
--reporters json,--reporter-json-export, and--color off
Executes Postman JavaScript pre-request/test scripts inside Node and sends whatever HTTP methods are defined in the collection.
- Collection JSON files can invoke arbitrary pre-request JS and mutating HTTP calls
Cross-platform via npm, npx, brew, and official Docker image.
- Distributed on npm and Homebrew
Essential when teams already maintain Postman .postman_collection.json suites; for net-new agent tests, hurl is lighter.
- Full Postman Collection v2 compatibility
Official Postman Labs project (postmanlabs/newman) under Apache-2.0.
- Official
postmanlabs/newmanrepository
Comprehensive Postman docs and --help reference.
- Official docs at learning.postman.com
Security, Auth & Guardrails
Reads secrets from environment files (-e env.json) or --env-var CLI flags; stores no credentials.
Free, Apache-2.0 open-source Node.js CLI.
# Newman Agent Rules - Always pass `--color off` and `--timeout-request <ms>` when running collections in agent shells. - Avoid printing `--env-var` secrets to stdout and audit collection scripts before running against live environments.
Agent-Ready Command Recipes
Safe Read-Only Queries
newman run collection.json --color off --bail --timeout-request 10000
Disables ANSI colors (--color off), stops on first error (--bail), and bounds request timeouts.
Controlled Writes & Previews
newman run collection.json -e staging.env.json --reporters json --reporter-json-export newman-report.json --color off
Applies an environment file and writes structured JSON execution results to newman-report.json.
Strengths for Agents
- + Runs existing Postman collections unchanged in headless CI and agent loops.
- +
--reporters jsonplus--color offyields clean machine-readable results.
Caveats & Pitfalls
- ! Exported JSON reports can be large if full response bodies are included.
- ! Collections are bulky JSON compared to plain-text
.hurlor.brufiles.