Middle
What do you know about Newman?
sobes.tech AI
Answer from AI
Newman is a command-line runner for the Postman Collection.
Main features of Newman:
- Running Postman test collections from the command line.
- Support for running collections from a file (JSON).
- Use of environment variables and global variables.
- Generating reports in various formats (HTML, JSON, JUnit, Allure, etc.).
- Integration with CI/CD systems.
Using Newman:
- Installation:
// Global installation npm install -g newman - Running a collection:
// Run collection from a file newman run my_collection.json // Run collection with environment variables newman run my_collection.json -e my_environment.json - Generating a report:
// Generate an HTML report newman run my_collection.json -r html --reporter-html-export report.html
Advantages of Newman:
- Allows automation of API tests.
- Convenient for integration into CI/CD pipelines.
- Supports various report formats.
- Easily extendable with custom reporters.