2. About me
I'm Alihossein shahabi a witty software developer and data
engineer. all my focus is on back-end technology. I'm
Interested in PHP, Javascript, Python, Apache Kafka, Apache
Solr and Linux. I love learning, in fact, it is my only
skill and ability.
6. Collections
● Save a request by placing it in a
collection
● Collections help you organise requests
● additionally, you can add
documentation, tests and are useful
sharing with other
7. Collections
You can share a collection with
other :
● The export collection as a file and
import from a file
● Sharing a link (requires Postman
account)
● Embed Button (requires Postman
account)
● Team sharing (require Postman Pro)
18. Variables
Environment Variables
● Similar to global variables but with a
narrower scope
● The idea for switching between
different setups
● Same usage in the request builder as
with global variables
20. Variables
Environment Variables
Best practices
● Clear / remove variables once you do
not need them
● Avoid mixing with global variables
● Get variables in scripts using the
scoped getter
pm.variables.get()
25. Pre-request
Script
● Similar to test scripts , but with no
assertions
● Ideal for making your requests
dynamic
● Usually used in combination with
variables
31. Postman
Monitors (pro)
● Run collection as regular intervals
● pro feature but you can use up to
1000 API calls per month free
32. Postman
Monitors (pro)
● Known limitations
● Postman servers are not in-network as
you are
● Can not important Global variables
● Global and environment variables are
not persisted
● Pro feature but you can use up to
1000 API calls per month freeKnown limitations
34. Newman
what is Newman ?
● Newman is a CLI tool which allows you
to run a Postman collection directly
from the command line .
Preparation
● Node.js
○ node --version
● Npm (Node Package manager)
○ npm --version
● Newman ()
○ newman --version
38. Newman
● Useful when using Jenkins or any
other CI server
● Show a nice overview dashboard
● Help with debugging failed tests
Why generate HTML reports ?
41. Newman
● Useful when using Jenkins or any
other CI server
● Show a nice overview dashboard
● Help with debugging failed tests
Create your own template
42. How to create
Data sets?
● Duplicate the requests and change
the data
● Use external Data files
● use Pre-request scripts, variables and
workflow
51. Understanding
users and
permissions
● User can only be part of one team (for
the free and pro account)
● Team members will be able to see all
workspaces and collections
● permissions are assigned to
collections
Important to remember
53. Mock Servers
● Fake Api that simulates a server
response but tries to behave like a real
API
● Can be used to serve canned
responses to a specific request
What is a mock server anyway?
54. Mock Servers
● API design, prototyping and
development
● API testing
why use a mock server ?
55. Mock Servers
● Cannot match body
● Cannot match the query parameters
○ Get /api/foo/2?hidden=true
○ Get /api/foo/2?hidden=false
● Request a specific response by
sending a header
Know limitations