Sobes.tech
Middle

What do you know about Newman?

sobes.tech AI

Answer from AI

Newman is a command-line runner for Postman. It allows you to run Postman collections from the command line, making it convenient for test automation and integration with CI/CD.

Main features of Newman:

  • Running Postman collections.
  • Using Postman environment variables.
  • Generating reports in various formats (HTML, JSON, Junit).
  • Integrating with CI/CD systems (Jenkins, GitLab CI, GitHub Actions, etc.).
  • Configuring run behavior (number of iterations, delays, etc.).

Advantages of using Newman:

  • Automation: Enables API testing automation.
  • Integration: Easily integrates with continuous integration/delivery pipelines.
  • Reporting: Generates detailed reports on test results.
  • Version control: Postman collections can be stored in version control systems (Git), simplifying change management.

Installation example (via npm):

npm install -g newman

Running a collection example:

newman run my_collection.json

Running with environment variables and HTML report generation example:

newman run my_collection.json --environment my_environment.json -r html,cli

Newman is a powerful tool for API testing automation and an essential part of the QA Automation specialist's toolkit when working with Postman.