API Testing/Monitoring NODEjs/GRAPHQL in deployed sites in CI/CD

Today:
- What is Postman?
- What is Newman?
- Running Newman in CI/CD
- Running Newman as a monitor API's reporting back
- Postmans online features
Postman
API Client(GUI)
Quickly and easily send REST, SOAP, and GraphQL requests directly within Postman.
Write: calls, collections, tests, env
NEwman
CLI (command line)
Run collections, tests, etc made with the GUI
Made with node.js
https://learning.postman.com/docs/postman/collection-runs/command-line-integration-with-newman/
Postman
API Client(GUI)
Quickly and easily send REST, SOAP, and GraphQL requests directly within Postman
1
- network calls
- pre-request scripts
- tests
- set variables in environments
- use authentication
newman
CLI (COMMAND LINE)
Run collections, tests, etc made with the GUI
1
- run every thing generated by GUI
- return pass/fail output(0 or 1)
- Generate reports
- text
- json
- html
- markdown
- junit
- post run task like post to slack
GUI screen share..
NEWMan screen share..
Newman in CI/cd
- Make sure your tests/envs are updated/exported with git commit that is being run (Postman does not auto export changes)
- make sure the mahcine running tests waits for server to start before running tests
- you may need different env file for ci/cd or set env vars like urls/ports on command line params
- choose report type usually all ways with cli reporting
- run post run tasks like report to slack, hipchat channels
Newman in Monitoring
- depends on your cloud or on site machines
- AWS ec2 instances
- heroku
- usually set you ci/cd to update the cloud machine on a deploy
ONline services
- publish docs
- publish collections and envs
- monitor
Where to go from here
BERZERK
- seminars
- conferences
- training
- consulting
- projects
https://www.linkedin.com/company/berzerk-io/
https://www.facebook.com/berzerk.interactive/
Lee blazek
SME Javascript, Angular, React, Vue, NodeJS, all things in the browser

API Testing
By Lee Blazek
API Testing
API Testing/Monitoring NODEjs/GRAPHQL in deployed sites in CI/CD
- 339