[root@public-service jenkins]# npm install -g newman npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. /home/.npm-global/bin/newman -> /home/.npm-global/lib/node_modules/newman/bin/newman.js + newman@5.2.4 added 128 packages from 187 contributors in 20.745s [root@public-service jenkins]# newman -v 5.2.4
[root@public-service jenkins]# newman run -r cli test.postman_collection.json newman: could not find "html" reporter ensure that the reporter is installed in the same directory as newman run `npm install newman-reporter-html`
newman
test
→ https://test.com/doctor-api/v2_0/optimalmall/getProduct POST https://test.com/doctor-api/v2_0/optimalmall/getProduct [200 OK, 5.84KB, 868ms]
[root@public-service jenkins]# newman run test.postman_collection.json -r html [root@public-service jenkins]# cd newman/ [root@public-service newman]# ls newman-run-report-2021-06-29-01-35-46-951-0.html