Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

newman

bởi 1999azzar

DevOps & Cloud
498Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Automated API testing with Postman collections via Newman CLI.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

User asks: Run my Postman collection against staging and produce a test report

AGENT
  1. 1

    Export collection as collection.json and staging environment as staging.json from Postman desktop

  2. 2

    Run: newman run collection.json -e staging.json --reporters cli,html,junit

  3. 3

    Add output paths: --reporter-html-export ./reports/newman.html --reporter-junit-export ./reports/newman.xml --bail

  4. 4

    Check exit code and surface failed tests from CLI output

ĐẦU RA

HTML report at ./reports/newman.html and JUnit XML at ./reports/newman.xml with pass/fail status per request

Yêu cầu

  • newman CLI (npm install -g newman)

Cài đặt

clawhub install 1999azzar/newman

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết