newman
1999azzar 제작
DevOps & Cloud요약
Automated API testing with Postman collections via Newman CLI.
설명
이 스킬이 하는 일
Newman is the command-line runner for Postman collections. It executes API tests from exported collection files with support for environments, data-driven iteration, and multiple report formats. Runs anywhere Node.js is available, including CI/CD pipelines.
Unlike running tests manually in the Postman desktop app, Newman enables fully headless, scriptable execution that integrates directly into CI/CD pipelines without any GUI dependency.
사용 시점
- Running Postman API tests automatically on every pull request
- Generating HTML and JUnit reports from collection runs for test dashboards
- Data-driven testing across multiple user credentials from a CSV file
- Regression testing API endpoints before deploying to staging
- Load testing an endpoint with high iteration counts and custom request delays
예시 워크플로
User asks: Run my Postman collection against staging and produce a test report
- 1
Export collection as collection.json and staging environment as staging.json from Postman desktop
- 2
Run: newman run collection.json -e staging.json --reporters cli,html,junit
- 3
Add output paths: --reporter-html-export ./reports/newman.html --reporter-junit-export ./reports/newman.xml --bail
- 4
Check exit code and surface failed tests from CLI output
HTML report at ./reports/newman.html and JUnit XML at ./reports/newman.xml with pass/fail status per request
요구 사항
- newman CLI (npm install -g newman)
설치
clawhub install 1999azzar/newmanCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.