Skip to content

Postman collection running via newman CLI and generating report through the Github Action and Deploy to the Github pages

Notifications You must be signed in to change notification settings

gits5213/postmanNewman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Postman collection running via newman CLI and generating report through the Github Action and Deploy to the Github pages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages