- GITS - API test Series-00 | What is API? | POSTMAN | Sample Request & Response
- GITS - API test Series-01 | What is API? | POSTMAN | GET Request & Response | Assertion | Test | Schema Validation
- GITS - API test Series-02 | What is API? | POSTMAN | POST Request & Response | Assertion | Test | Schema Validation
- GITS - API test Series-03 | What is API? | POSTMAN | Customize Assertion | Global Variable
- GITS - API test Series-04 | POSTMAN Runner | Newman | CLI | Newman HTML Report
- GITS - API test Series-05 | Github Action | Newman | CLI | CICD | Newman HTML Report
- GITS - API test Series-5a | Github Action | Newman | CLI | CICD | Github Workflow Debug
- GITS - API test Series-5ab | Github Action | Newman | CLI | CICD | Artifact Newman HTML Report
POSTMAN Node.js
Install the Newman from Command Line using the command
npm install -g newman
Install Newman HTML report by the following command
npm install -g newman-reporter-htmlextra
- 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
> 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
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>