Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 2.91 KB

README.md

File metadata and controls

57 lines (49 loc) · 2.91 KB

postman Newman Learing from Scratch

Youtub Video Tutorials

Pre-requisites

POSTMAN Node.js

Newman

Install the Newman from Command Line using the command

npm install -g newman

Newman reporter

Install Newman HTML report by the following command

npm install -g newman-reporter-htmlextra

Newman CLI Command

Generate Postman CLI Configuration Github Action

- Select on 3 dot on the collection
- Select Run collection 
- Click on Configure Commands under Run on CI/CD on the Choose how to run your collection pannel 
- Select CI/CD provider as GtiHub Action 
- Generate API Key
- Copy the snippet code 
- Create .yml file under workflow under .github folder 
- ${{ secrets.POSTMAN_API_KEY }} replace with Generated API Key 
- Push your code 
- Build Success in github action 
- Copy Example workflow file
- Replace the API Key 
- Replace the collection 

Newman CLI end point execution through the github action and deploy report to github page

    > mkdir -p testResults
    > npm install -g newman
    > npm install -g newman-reporter-htmlextra
    > newman run "LearingRESTFULService.json" -r htmlextra --reporter-htmlextra-export testResults/htmlreport.html
    - Output the results in the testResults
    - Test marketplace action for report 
    -  Publish Github Page

Youtub Video Tutorials on watch

GITS - API test Series-00 | What is API? | POSTMAN | Sample Request & Response

<iframe width="560" height="315" src="https://www.youtube.com/embed/qniB-uDonDk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>