Creating a Postman Collection
Step 1: Head to the Postman Application and create a new workspace or use the existing workspace as per your requirement. Then navigate to the workspace be in the collections tab and click on the ‘+’ symbol on the right of your page as shown below:
Step 2: Click on ‘+’ and then choose and then choose ‘Blank Collection’ and then name the collection and add the requests as per your requirement.
How to Run Postman Scripts from Newman CLI Commands
Postman is an API development tool that allows developers to create, test, and manage APIs effortlessly. This helps in simplifying the testing and validation of APIs during the development process. In simple terms, it is an API that acts as a bridge that allows the different applications to communicate with each other. And one of the major key features is automated testing where developers can create scripts to validate API responses automatically. In this tutorial, we will see how to run Postman collections using Newman CLI (Command Line Interface).