Postman API Testing Tutorial-Part 10: How to run Postman Collection by command line | Newman Postman

Опубликовано: 30 Сентябрь 2024
на канале: Codenbox AutomationLab
500
13

#apitesting #api #postman
+ How to run Postman Collection through command line
+ Newman integrate to Postman
+ How to generate html report in Postman
+ How to share Collection in Postman
+How to generate newman-reporter-html
+Postman API Testing Tutorial
+Postman step by step

▬▬▬▬▬▬ In this Video ▶️ ▬▬▬▬▬▬
How to run collection(suite)/ Requests through command line:
-Download & Install node.js : node --version; npm -v
-Install newman through cmd : npm install -g newman
-To Generate html reporter install: npm install newman-reporter-html
Export & save the collection want to run through command prompt

Run that collection through cmd following various ways:

Method 1: Run through local cmd/terminal
-Type & execute in cmd (open from the local folder) : newman run +path of the exported collection file.json

-To generate html reporter:
newman run (path of the exported collection file.json) -r html


Method 2: Execute collection through remotely using share link
-Click on (...) dots the collection want to run +share +Via API link
-Copy the link (ex): https://www.getpostman.com/collection...
-Type & execute in cmd (open from the local folder) : newman run "link of the collection’s api"
Ex: newman run https://www.getpostman.com/collection...

Or: To generate report
newman run https://www.getpostman.com/collection... -r html


👉 Learn JSON in 2 Minutes:    • Learn JSON in 2 Minutes | What is JSO...  

👉 Postman API doc: https://codenboxautomationlab.com/pos...

👉 Learn JavaScript:    • JavaScript tutorial for beginners  

👉 Convert CSV TO JSON: https://csvjson.com/


▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬
Blog ► http://codenboxautomationlab.com/​​
GitHub Repo ► https://github.com/codenbox​​/

▬▬▬▬▬▬ Connect with us 👋 ▬▬▬▬▬▬
💻 Facebook:   / ​​  
📱 Twitter:   / codenboxteam  
📝 LinkedIn:   / sarifuli  

🌟 Please hit on LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟