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 Environment variables










share|improve this question









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

















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 Environment variables










share|improve this question









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















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 Environment variables










share|improve this question









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 Environment variables







jenkins postman newman






share|improve this question









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.











share|improve this question









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.









share|improve this question




share|improve this question








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




















  • 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














1 Answer
1






active

oldest

votes

















up vote
0
down vote














  1. Install https://plugins.jenkins.io/nodejs in jenkins


  2. In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman



Global Tool Configuration add Nodejs




  1. In Build Environment use "Provide Node & npm bin/ folder to PATH"



  2. 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





newman






share|improve this answer



















  • 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













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Như Nguyễn is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote














  1. Install https://plugins.jenkins.io/nodejs in jenkins


  2. In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman



Global Tool Configuration add Nodejs




  1. In Build Environment use "Provide Node & npm bin/ folder to PATH"



  2. 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





newman






share|improve this answer



















  • 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

















up vote
0
down vote














  1. Install https://plugins.jenkins.io/nodejs in jenkins


  2. In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman



Global Tool Configuration add Nodejs




  1. In Build Environment use "Provide Node & npm bin/ folder to PATH"



  2. 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





newman






share|improve this answer



















  • 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















up vote
0
down vote










up vote
0
down vote










  1. Install https://plugins.jenkins.io/nodejs in jenkins


  2. In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman



Global Tool Configuration add Nodejs




  1. In Build Environment use "Provide Node & npm bin/ folder to PATH"



  2. 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





newman






share|improve this answer















  1. Install https://plugins.jenkins.io/nodejs in jenkins


  2. In Global Tool Configuration add Nodejs and in "Global npm packages to install" add newman



Global Tool Configuration add Nodejs




  1. In Build Environment use "Provide Node & npm bin/ folder to PATH"



  2. 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





newman







share|improve this answer














share|improve this answer



share|improve this answer








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
















  • 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












Như Nguyễn is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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.















 


draft saved


draft discarded














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




















































































這個網誌中的熱門文章

Academy of Television Arts & Sciences

L'Équipe

1995 France bombings