I downloaded the POSTMAN Chrome app to test some web APIs in a local local environment.
In addition, I downloaded the Newman command-line utility for Postman.
See https://www.getpostman.com/docs/newman_intro for more details.
So, the Postman application works fine, and the cmd-line utility also works.
However, as soon as I integrate it with the Jenkins test server, the tests do not work.
The main problem is that it cannot start Newman .
At the standard cmd prompt, I can successfully run the Newman test script as:
newman -c API-Collection.json -n 3
executed n times.

And in the Jenkins Build Server GUI, I add a script construct in the "Execute Shell" section.

But he does not find Newman , as this build error shows:
FailedConsole Output Started by user anonymous Building in workspace C:\Program Files (x86)\Jenkins\workspace\Web Api Test1 (Team Gecko) [Web Api Test1 (Team Gecko)] $ "C:\Program Files\bin\sh.exe" -xe C:\Windows\TEMP\hudson2522506155962538386.sh + newman -c C:\Users\robertjm\Documents\POSTMAN Files\Workbench-API-Collection.json -n 3 -y 1000 --exitCode 1 -o output.json -H output.html C:\Windows\TEMP\hudson2522506155962538386.sh: newman: command not found Build step 'Execute shell' marked build as failure Finished: FAILURE
If someone can help me in solving this problem, I would appreciate it.
thanks bob
jenkins postman
bob.mazzo
source share