Driving Pipeline
Automation with Newman
and the Postman API
Strategies for integrating Postman workflows in your
CI/CD pipelines
LEAD SOLUTIONS ENGINEER, POSTMAN
Kevin
Swiber
@kevinswiber
Agenda
1 Why pipelines?
2 Common strategies
3 Demo time
4 Focus, flow, and joy
5 Q&A
Why Pipelines?
How did we even get here?
Deploying software in the 1900s
Embracing change
Dawn of the automaton
– Benjamin Franklin (maybe)
“We must all hang together, or
assuredly, we shall all hang
separately.”
Illustrated progress
A vast ocean of possibilities
Teach a fish to eat.
Azure Pipelines
GitHub Actions
AWS CodePipeline Jenkins
But wait…what about the cloud?
sam local
newman run
heroku local
Common Strategies
What lots of folks are doing today.
Running collections
How Newman works
Collection
Environment
Newman Test Results
Reporting test results
Reporters
● CLI
● JUnit
● HTML
● Emojitrain 😀 😀 😀 😍
● {{Your-Favorite-Format}}
● https://www.npmjs.com/search?q=newman-reporter
Export and commit
git add 
postman_collection.json
git commit -m 
"🚀 Adding Postman tests."
git push origin api-testing
Fetch from the Postman API
curl 
https://api.getpostman.com
...
newman run ...
Mind the gap
Automating test discovery and execution
Newman and the Postman API, bffs 5ever
Use labels on APIs, API Versions, Collections, and
Environments.
Developers run tests without having to know the
collection and environment details beforehand.
Wire up your CI/CD pipelines to take advantage of this
newfound flexibility.
N
e
w
m
a
n
F
T
W
Focus, Flow, and Joy
Be the pipeline. 😌
Observe everything
Measuring lead time
PRODUCT DESIGN AND DEVELOPMENT
PRODUCT DELIVERY (BUILD, TESTING,
DEPLOYMENT)
Create new products and services that
solve customer problems using
hypothesis-driven delivery, modern UX,
and design thinking.
Enable fast flow from development to
production and reliable releases by
standardizing work, and reducing
variability and batch sizes.
Feature design and implementation
may require work that has never been
performed before.
Integration, test, and deployment must
be performed continuously as quickly
as possible.
Estimates are highly uncertain. Cycle times should be well-known and
predictable.
Outcomes are highly variable. Outcomes should have low variability.
– Mihaly Csikszentmihalyi
“Enjoyment appears at the boundary
between boredom and anxiety, when
the challenges are just balanced with
the person's capacity to act.”
Thank You
postman.com @getpostman
Get Started
with Newman
https://github.com/postmanlabs/newman
@getpostman
postman.com

Driving Pipeline Automation With Newman and the Postman API