40+ tips to use postman more efficiently
TRANSCRIPT
![Page 1: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/1.jpg)
Postman gives you superpowers
These slides show you how to use them
![Page 2: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/2.jpg)
Launch Postman quickly
Chrome’s app launcher sits in your OS dock and let’s you access Postman without
opening Chrome.
![Page 3: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/3.jpg)
Launch Postman quickly
Create a Postman shortcut just like shortcuts for native apps
![Page 4: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/4.jpg)
Launch Postman quickly
Go to the “Apps” page using the Bookmarks bar or type chrome://apps in the address
bar
![Page 5: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/5.jpg)
Build requests quickly
URL parameters let you add key-value pairs to construct the request URL quickly.
![Page 6: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/6.jpg)
Build requests quickly
Use header presets to save and load common sets of headers.
![Page 7: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/7.jpg)
Build requests quickly
Send browser cookies automatically through the Postman Interceptor
extension. Install Interceptor
![Page 8: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/8.jpg)
Build requests quickly
Authenticate using Basic Auth, Digest Auth, Oauth 1.0 and Oauth 2.0 helpers. Postman
can sign requests and generate header and parameter values.
![Page 9: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/9.jpg)
Organize using collections
Collections let you bunch requests together and organize them further in folders. You can
use collections for API documentation, user scenarios or any kind of related requests.
![Page 10: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/10.jpg)
Organize using collections
Using the history to replay requests a lot? Use collections to be more
organized.
![Page 11: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/11.jpg)
Organize using collections
Document your API using collections.
![Page 12: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/12.jpg)
Organize using collections
Store a sample flow using collections.
![Page 13: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/13.jpg)
Organize using collections
Add names and descriptions while saving requests in a collection. Descriptions in
Postman support Markdown.
![Page 14: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/14.jpg)
Organize using collections
Descriptions show up right above the request construction module.
![Page 15: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/15.jpg)
Organize using collections
Lots of requests in a collection? Use folders to organize stuff further.
![Page 16: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/16.jpg)
Using collections
Requests can be re-ordered and duplicated inside a collection or a folder.
![Page 17: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/17.jpg)
Organize using collections
Save sample responses inside requests. Click on the bookmark icon above the
response view.
![Page 18: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/18.jpg)
Organize using collections
Saving responses: Give the response an identifier.
![Page 19: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/19.jpg)
Organize using collections
Saving responses: Response identifiers show up as part of the description.
Click to load the response.
![Page 20: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/20.jpg)
Sharing collections
Share collections with your team. On-board new developers quickly.
![Page 21: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/21.jpg)
Sharing collections
Share collections through getpostman.com. Used by folks at Box, Cisco, Intel,
Qualys and many more!
![Page 22: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/22.jpg)
Sharing collections
Collections can be imported from the file system and URLs.
![Page 23: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/23.jpg)
Sharing collections
Share your collections with Postman users using the API directory. Exciting
updates coming soon!
![Page 24: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/24.jpg)
Using environments
Use variables inside requests to switch between local, staging or production
environments. Can also be used to hide sensitive information while sharing collections.
![Page 25: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/25.jpg)
Using environments
Environment variables are enclosed in {{double curly braces}} and can be
used anywhere inside request values.
![Page 26: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/26.jpg)
Using environments
Environments can be exported and shared.
![Page 27: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/27.jpg)
Postman Interceptor
Install the Postman Interceptor for tighter integration with the Chrome
browser. Install Interceptor
![Page 28: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/28.jpg)
Postman Interceptor
Capture requests from a web page and stream them inside Postman’s
history.
![Page 29: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/29.jpg)
Postman Proxy
Use the Postman Proxy to capture requests from desktop applications or
mobile applications. Link: https://github.com/a85/PostmanProxy
![Page 30: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/30.jpg)
Jetpacks
Get the Jetpacks upgrade for writing tests, running pre-request scripts and
the Collection Runner. It’s just $9.99 for a single user! Buy Jetpacks
![Page 31: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/31.jpg)
Jetpacks
Provision licenses for your entire team using the online interface. Link:
https://www.getpostman.com/profile/teams
![Page 32: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/32.jpg)
Pre-request scripts
Execute Javascript code before a request is sent. Example: Generate
random numbers or timestamps and insert in requests
![Page 33: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/33.jpg)
Pre-request scripts
The request object is available inside pre-request scripts. Access values
from the UI and then modify them again.
![Page 34: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/34.jpg)
Pre-request scripts
Set environment and global variable values. Useful in request chaining.
![Page 35: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/35.jpg)
Test scripts
Write tests within Postman using the full power of Javascript. Use snippets
to quickly build a test suite.
![Page 36: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/36.jpg)
Test scripts
Results show up inside Postman with pass/fail counts. Test scripts are part
of collections. Sharing a collection also shares your tests.
![Page 37: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/37.jpg)
Test scripts
Environments and global values can be set inside test scripts too.
![Page 38: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/38.jpg)
Request evaluation life-cycle
1. Gather data from the Postman UI
2. Pre-request scripts
3. Send request
4. Receive response
5. Run test scripts
6. Display response and test results
![Page 39: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/39.jpg)
Collection runner
Run all requests in a collection or a folder together. You can run multiple
iterations too.
![Page 40: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/40.jpg)
Collection runner
See aggregate test results. For multiple iterations, drill into each iteration’s
result.
![Page 41: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/41.jpg)
Collection runner
See previous runs. Ensure that your API tests are improving over time.
![Page 42: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/42.jpg)
Data files
Load data files for multiple iterations. Postman supports CSV and JSON
files.
![Page 43: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/43.jpg)
Data files
Data variables are enclosed within {{double curly braces}} in the
request.
![Page 44: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/44.jpg)
Data files
Data values are available in pre-request scripts and test scripts too using
the special data variable.
![Page 45: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/45.jpg)
Newman
Newman is a Node.js based command line companion tool to run Postman
collections. See documentation
![Page 46: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/46.jpg)
Newman
Use Newman to schedule tests using cron. Integrate Newman with build
systems.
cron/curl
+
![Page 47: 40+ tips to use Postman more efficiently](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a209381a28abe3788b4903/html5/thumbnails/47.jpg)
Links
• Postman (www.getpostman.com)
• Postman Docs (www.getpostman.com/docs)
• Postman Blog (http://blog.getpostman.com)
• Postman on Twitter
(https://www.twitter.com/postmanclient)
• Postman on Facebook
(https://www.facebook.com/getpostman)
• Email us at [email protected]