Using Newman with CI/CD

Updated: Jan 15, 2021

If you haven't installed Newman yet, you can check Set up Newman and run your first postman Collection.

We are going to use Jenkins for our Continuous Integration and Continuous Development with Newman. Jenkins is an Open source automation server. It provides hundreds of plugins to support building, deploying and automating any project.

Setting up Jenkins:

Download and install Jenkins before getting into the steps.

Jenkins exposes an interface at http://localhost:8080. Login with your details and your home page looks like this.

Create a new job:

In Jenkins Dashboard, click New Item -> create a freestyle project and enter required details.

Enter a name for your build.

Under Build section, select "Execute shell" and enter the following newman command in command textbox.

newman run filepath/filename.json

and click save.

Now your new build is created. Click "Build Now" to execute the test manually.

You can see the log by clicking console of that test.

Thus we have set up newman and connected it with Jenkins. Happy Testing!!!

26 views0 comments

Recent Posts

See All

A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the minimum number of characters you need to delete to make s good. The f

The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, so the numeric value of a is 1, the numeric value of b is 2, the numeric value of c is 3, and so on.