What is Newman?
Newman is a command-line collection runner for Postman. It allows you to effortlessly run and test a Postman collection directly from the command-line. It is built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems.
To install Newman you need to have Node install, you can download and install node from here.
Once the Node is installed you can go ahead and install Newman using the following command:
$ npm install -g newman
To verify the installation was successful, type the below command in your cmd tool. It should print the version of the newman installed
$ newman -v
After successful installation, you can run your postman collection in two ways.
1. By exporting your Postman Collection as a json file from the Postman App and run it using Newman.
$ newman run examples/sample-collection.json
2.By passing the collection URL of your postman collection.
$ newman run https://www.getpostman.com/collections/7384943-f695cab0-6887-eb90-7947-ad88e1ccfd3434-yyte
If you want to learn about reporting in newman you can follow my another post Newman reporting tool.