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 ...

Get Continuous Integration, Delivery, and Deployment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.