Continuous IntegrationContinuous Integration is also known as CI. It is a development method that is required several times a day by developers to integrate the code into a shared repository. Each check-in process involves automating the build and allowing teams to detect problems early. By integrating regularly, we can quickly detect errors, and locate the errors very easily. To run within your CI environment, let's use collections from Postman API. Some pre-requisites are:
Follow the following steps: 1. Install NodeIf your CI already have Node installed, you can skip this stage. Some CI has, by default, installed Node. If your CI has no node, then open this link and follow the steps to install the Node on your CI's platform. Make sure you have NodeJS v4 or above. 2. Install NewmanIn Postman, Newman is a command-line collection runner tool that lets you run a collection on your server or in your local development environment. To install the Newman use the given command: 3. Execute NewmanTo execute the Newman, use the below command: The above command is the syntax to run a newman. Change the parameters accordingly. If you want to modify an environment to the collection, use the given command instead of above command: Next TopicBranching and Looping |