O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Newman

Now that we have our Postman tests, complete in a collection with environments, we probably want to automate our tests. In Jenkins, this works pretty much the same as our Selenium tests; make sure your web service is running somewhere and run the tests using the command line. The problem is that Postman is a desktop application and we cannot run it from the command line. Not without Newman, that is (https://github.com/postmanlabs/newman). You can install Newman using npm:

npm install newman --save-devnpm install newman -g

Before we can use Newman, we must do two things: export our collection and export our environment(s). We can start with the collection. Go to your collections in Postman and click the button with three dots. From ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required