Home » Continuous Integration

Continuous Integration

by Online Tutorials Library

Continuous Integration

Continuous 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:

  • It would be best if you had a system set up with Continuous Integration that can execute shell commands and have access to change the same.
  • You should have an API key.
  • It requires a postman collection that can check your local server, and note the collection UID.

Follow the following steps:

1. Install Node

If 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 Newman

In 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 Newman

To 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:


You may also like