Run Postman Collections in Jenkins with Newman

preview_player
Показать описание

Full-installation Guide for Windows 10:

Newman

htmlextra reporter

Downloading Jenkins

--

If this was helpful and you want to support me create more videos like this one, please consider subscribing.

--

⭐️ Video contents ⭐️

00:00 - Introduction
01:00 - Prerequisites for automation
02:13 - How to install Newman
03:36 - Getting the Postman collection in Newman
13:55 - Generating HTML reports
18:57 - Automating Newman with Jenkins
25:01 - Using secrets in Jenkins
29:02 - Publishing reports (JUnit, HTML)
35:04 - Conclusion

--

⭐️ 🎓 The complete guide to Postman (online course) ⭐️

Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

--

⭐️ 💬 I have a question. ⭐️

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on Discord, on the Postman User Group on Facebook, or on the Postman Community (links below).

If you are asking a question, make sure to include as many details as possible, including screenshots.

If you have purchased the Postman online course, please use the Q&A section or send me a message directly.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

--

⭐️ 💡 I have a video idea ⭐️

Do you want me to create a video on a specific topic? Just fill out the form below:

--

⭐️ 📺 Learn Postman on YouTube ⭐️

Collection of video tutorials:

___

⭐️ 📕 Free resources ⭐️

📌 DOWNLOAD the FREE Postman Quick Reference Guide

📌 Ask a question on Discord (unofficial)

📌 Join the Postman User Group on Facebook (unofficial)

📌 Postman community forum (official)

--

⭐️ 📩 Contact & Imprint ⭐️

👉 Let's be friends

👉 Follow me on Twitter:

👉 Follow me on Medium:

👉 Follow me on Facebook:

👉 Let's connect on LinkedIn:

Рекомендации по теме
Комментарии
Автор

Want to have ME be your Postman teacher? 🤔

vdespa
Автор

This is amazing! Thank you so much Valentine for sharing your quality knowledge with us 🚀

c-mnm
Автор

Really awesome video, was helpful. Valentin Despa Thanks for sharing.

Karthickmasanmasan
Автор

Very great video. Could be useful if you link it with deploy pipeline in Jenkins. I believe to automate the API test we should set the latest build for the environment

user_dmbs
Автор

Thank you very much Valentin for all your clear explanations: I was interested in doing this in a docker container but i do not manage to create container with jenkins + newman, it fails. i have used the docker image weareathlon/jenkins: do you have an other docker image already build to advice ? I think you are doing this in your udemy course, but i am not sure. Do you give any personnal help for a french lady ?

soniapascal
Автор

Hi Valentin, Thanks for the tutorial. This is really helpful.
If I want to run the Postman collection on some cloud based K8 setup through jenkins, the installation of newman and html report would be on my laptop or on the cloud setup? Also the collection has an environment (as a setup), how should I configure all this with jenkins. Please reply

abhabansal
Автор

Great Video, Thanks for sharing.
I am using both Environment and Collections. In Environment I am storing also some variable (like baseUrl).In this case, I still get similar to invalid URL (see in video 11:10)
Could you please explain how to assign variable from environment when running newman, to be able to run successfully? - Thank you

ghasemtabatabaei
Автор

Hi, Thanks for the tutorials, Its really helpful.
I have 1 query. Is it possible to run a collection that has secret keys as variable in environment without exposing it from jenkins?
We are planning to run postman collection file stored in bitbucket via jenkins but in that case I have to export password containing environmental variables too

ananyakshetty
Автор

Hai this is very helpful how can i access the global variable and how can i access the run time collection setted collection variable to another api

MonishaVetrivel-uiuk
Автор

Could you share the collection please to practise

momc
Автор

If i want to pass multipartfile as parameter in request how to make sure that jenkins takes that file during build?

Albymichael
Автор

how to run multiple collections from newman? do we need to write a for loop that iterates through the folder containing the json files? if so, can you pls share that logic as well?

stagsxm
Автор

CreateProcess error=2, The system cannot find the file specified, now

filipjuza
Автор

The latest changes to Postman tests don't reflect in Newman?

dailylife
Автор

Hi despa when we run apis in postman it's working fine when I run apis in new man all apis got failed can u plz help me on this

prabhavathiejjagiri
Автор

i have client id and password which i am passing through environment.json and able to execute it through postman but my requirement is how to automate through jenkins pipeline without commiting my password to gihub and run through the pipeline?

srinikalluri
Автор

Hi Valentina Despa,
If i have any external file which has request body for only one of the request in the collection and i need to run only that particular api request with external file and other api request in the collection with what ever request body which is specified in the request body, What should be the solution for the same?
Thanks in Advance.

ramakrishnanc
Автор

Hi Valentine Despa,
I'm getting the "Assertion error" when I run my script using newman, I also used environment for the same .

│ executed │ failed │

│ iterations │ 1 │ 0 │

│ requests │ 12 │ 0 │

│ test-scripts │ 24 │ 1 │

│ prerequest-scripts │ 14 │ 0 │

│ assertions │ 42 │ 42 │

shailendrakumartiranga
Автор

Hi @vdespa I'm getting this error
error: EROFS: read-only file system, mkdir '/newman'

shailendrakumartiranga
Автор

newman run -g --global-var "Username={{Username}}" --global-var "Password={{Password}}" -- trying like this but somehow usename/password not getting and unable to generate secure token to hit the endpoint

srinikalluri