Newman
The Newman command-line app can run the tests created by the Postman app. This makes running Postman tests really simple, and it also makes it easy to include these tests in command-line-driven build scripts.
Checking for Newman
You can check if you already have Newman installed by typing the following at the command line:
â | newman -v |
If itâs installed, youâll get a response showing the version number of your release of Newman. On my machine I get this:
â | 4.5.0 |
Installing Newman
You can install the Newman test runner using the npm utility you installed earlier (see âNodeJS and npmâ). To do that, just type the following at the command line:
â | npm -g install newman |
Thatâs all you need to do. You can check to see if it was ...
Get Design and Build Great Web APIs 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.