User question “I want to run my postman script through newman on remote jenkins machine is it possible? If yes then how?
Would really appreciate if you could share any documentation regarding that.”
Here is our documentation on integrating with Jenkins: https://learning.getpostman.com/docs/postman/collection_runs/integration_with_jenkins/
1 Like
Well to run Newman:
- Install NodeJS on the server
- Install the
newman npm
package - run
newman
in an execute shell
There are two ways to install NodeJS and newman
ssh
into the Jenkins server and install manually and make it available for the Jenkins user on the machine- install the NodeJS Plugin and install
newman
through there
The latter is less error prone and won’t involve ssh
which IMO is a better workflow.
The documentation shows running newman against a json file. If we wrote our tests in Postman (in the cloud), how do I have newman execute the collection without having to export and re-export the tests and add to source control every time I make a change?
1 Like
Spoiler: found it…
2 Likes
TL;DR, Use the Postman API to fetch your collection
1 Like