Run Newman in jenkins
up vote
1
down vote
favorite
this is my first time using Jenkins for automated test.I've tried to run a test by integrate Newman with Jenkins but I always get the
Console Error
"Newman : command not found"
as a result,it's make my test failed.
I have looking for some answers on the Internet and some tell me to add a value for Environment variables, but I don't know how to get the exact value to add to this. Please show me where can I get this.I'm using MacOS High Sierra

jenkins postman newman
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
1
down vote
favorite
this is my first time using Jenkins for automated test.I've tried to run a test by integrate Newman with Jenkins but I always get the
Console Error
"Newman : command not found"
as a result,it's make my test failed.
I have looking for some answers on the Internet and some tell me to add a value for Environment variables, but I don't know how to get the exact value to add to this. Please show me where can I get this.I'm using MacOS High Sierra

jenkins postman newman
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
also add Console Output from jenkins in your question
– Mukesh M
Nov 4 at 15:58
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
this is my first time using Jenkins for automated test.I've tried to run a test by integrate Newman with Jenkins but I always get the
Console Error
"Newman : command not found"
as a result,it's make my test failed.
I have looking for some answers on the Internet and some tell me to add a value for Environment variables, but I don't know how to get the exact value to add to this. Please show me where can I get this.I'm using MacOS High Sierra

jenkins postman newman
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
this is my first time using Jenkins for automated test.I've tried to run a test by integrate Newman with Jenkins but I always get the
Console Error
"Newman : command not found"
as a result,it's make my test failed.
I have looking for some answers on the Internet and some tell me to add a value for Environment variables, but I don't know how to get the exact value to add to this. Please show me where can I get this.I'm using MacOS High Sierra

jenkins postman newman
jenkins postman newman
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Nov 7 at 11:22
Mukesh M
1,12761626
1,12761626
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Nov 4 at 15:15
Như Nguyễn
62
62
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Như Nguyễn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
also add Console Output from jenkins in your question
– Mukesh M
Nov 4 at 15:58
add a comment |
also add Console Output from jenkins in your question
– Mukesh M
Nov 4 at 15:58
also add Console Output from jenkins in your question
– Mukesh M
Nov 4 at 15:58
also add Console Output from jenkins in your question
– Mukesh M
Nov 4 at 15:58
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Install https://plugins.jenkins.io/nodejs in jenkins
In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman

In Build Environment use "Provide Node & npm bin/ folder to PATH"
In Build add "execute shell" if you are using linux or use "execute windows batch command" if you are on windows and add your newman command
For example:
newman run
https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv

1
OMG thanks a lot for your help, this have solved my problem
– Như Nguyễn
Nov 5 at 3:20
@NhưNguyễn Note that the postman collections that I use in my answer may fail getpostman.com/collections/… but newman command will run fine.
– Mukesh M
Nov 5 at 3:56
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Install https://plugins.jenkins.io/nodejs in jenkins
In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman

In Build Environment use "Provide Node & npm bin/ folder to PATH"
In Build add "execute shell" if you are using linux or use "execute windows batch command" if you are on windows and add your newman command
For example:
newman run
https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv

1
OMG thanks a lot for your help, this have solved my problem
– Như Nguyễn
Nov 5 at 3:20
@NhưNguyễn Note that the postman collections that I use in my answer may fail getpostman.com/collections/… but newman command will run fine.
– Mukesh M
Nov 5 at 3:56
add a comment |
up vote
0
down vote
Install https://plugins.jenkins.io/nodejs in jenkins
In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman

In Build Environment use "Provide Node & npm bin/ folder to PATH"
In Build add "execute shell" if you are using linux or use "execute windows batch command" if you are on windows and add your newman command
For example:
newman run
https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv

1
OMG thanks a lot for your help, this have solved my problem
– Như Nguyễn
Nov 5 at 3:20
@NhưNguyễn Note that the postman collections that I use in my answer may fail getpostman.com/collections/… but newman command will run fine.
– Mukesh M
Nov 5 at 3:56
add a comment |
up vote
0
down vote
up vote
0
down vote
Install https://plugins.jenkins.io/nodejs in jenkins
In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman

In Build Environment use "Provide Node & npm bin/ folder to PATH"
In Build add "execute shell" if you are using linux or use "execute windows batch command" if you are on windows and add your newman command
For example:
newman run
https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv

Install https://plugins.jenkins.io/nodejs in jenkins
In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman

In Build Environment use "Provide Node & npm bin/ folder to PATH"
In Build add "execute shell" if you are using linux or use "execute windows batch command" if you are on windows and add your newman command
For example:
newman run
https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv

edited Nov 5 at 3:54
answered Nov 4 at 15:47
Mukesh M
1,12761626
1,12761626
1
OMG thanks a lot for your help, this have solved my problem
– Như Nguyễn
Nov 5 at 3:20
@NhưNguyễn Note that the postman collections that I use in my answer may fail getpostman.com/collections/… but newman command will run fine.
– Mukesh M
Nov 5 at 3:56
add a comment |
1
OMG thanks a lot for your help, this have solved my problem
– Như Nguyễn
Nov 5 at 3:20
@NhưNguyễn Note that the postman collections that I use in my answer may fail getpostman.com/collections/… but newman command will run fine.
– Mukesh M
Nov 5 at 3:56
1
1
OMG thanks a lot for your help, this have solved my problem
– Như Nguyễn
Nov 5 at 3:20
OMG thanks a lot for your help, this have solved my problem
– Như Nguyễn
Nov 5 at 3:20
@NhưNguyễn Note that the postman collections that I use in my answer may fail getpostman.com/collections/… but newman command will run fine.
– Mukesh M
Nov 5 at 3:56
@NhưNguyễn Note that the postman collections that I use in my answer may fail getpostman.com/collections/… but newman command will run fine.
– Mukesh M
Nov 5 at 3:56
add a comment |
Như Nguyễn is a new contributor. Be nice, and check out our Code of Conduct.
Như Nguyễn is a new contributor. Be nice, and check out our Code of Conduct.
Như Nguyễn is a new contributor. Be nice, and check out our Code of Conduct.
Như Nguyễn is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53142260%2frun-newman-in-jenkins%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
also add Console Output from jenkins in your question
– Mukesh M
Nov 4 at 15:58