Course Highlights
  • Create GET, POST, PUT, DELETE request
  • Understand GET vs POST request method
  • Work with real-world APIs (Github API, Trello API)
  • JavaScript basics for tests
  • Write API tests in Postman
  • Use data from Excel files (CSV) or JSON
  • Use Postman variables to create workflows and scenarios
  • Run API tests with Newman in Jenkins, GitLab CI or TeamCity
  • Use OAuth2, API keys, tokens, JWT, basic auth
  • Test file uploads
  • Use mock servers
  • Collaborate using Team Workspaces
Curriculum

11 Topics
Course overview
About the course
How to install Postman
A quick introduction to APIs
Introduction to Postman & APIs
Your first Postman request
Troubleshooting Postman errors
Using Postman on the web
A brief overview of HTTP
The Postman Landscape
First steps in Postman

56 Topics
Section overview
Resources for this section
Postman collections
Storing configuration in collection variables
Modifying collection variables
Postman collections and variables
GET request
Visualizing responses in Postman
Query parameters
Misconceptions about API parameters
Query parameters
Assignment - Query parameters
Guided Assignment - Step by step instructions
Assignment - Query parameters - Solution
Shortcuts in Postman
Path variables
Troubleshooting Path variables
Query params vs Path variables
Path variables
The business processes and rules behind an API
POST request
Assignment - Check cart contents
Guided Assignment - Step by step instructions
Assignment - Check cart contents - Solution
JSON format explained
POST request with JSON
Troubleshooting POST requests
GET vs POST
POST requests with JSON
API Authentication
Troubleshooting HTTP status codes
Assignment - Place an order
Guided Assignment - Step by step instructions - Place an order
Troubleshooting - Place an order
Assignment - Place an order - Solution
Using random data in requests (random variables)
Working with HTTP headers in Postman
Common questions about HTTP headers
Headers vs query vs params
Exporting and Importing a Postman collection
PATCH request method
Assignment - PATCH request method
Assignment - PATCH request method - Solution
Using Postman variables to avoid duplication
PATCH request method - continued
PUT request method
DELETE request method
Assignment - Delete an order
Guided Assignment - Step by step instructions
Assignment - Delete an order - Solution
GET POST PUT PATCH … What is the difference?
HEAD request method
HTTP request methods quiz
Assignment - Valentin's Book List API
Guided Assignment - Valentin's Book List API
Assignment - Valentin's Book List API - Solution

21 Topics
Section overview
Why learn to use real-world APIs?
Troubleshooting
Using the API documentation
Using the API documentation - Assignment
Guided Assignment - Using the API documentation
Using API documentation - Assignment Solution
Using identifiers when working with resources
Assignment - Creating resources - Lists
Guided Assignment - Creating resources - Lists
Assignment - Creating resources - Lists - Solution
Assignment - Creating resources - Cards
Guided Assignment - Creating resources - Cards
Assignment - Creating resources - Cards - Solution
Assignment - Managing resources
Guided Assignment - Managing resources
Assignment - Managing resources - Solution
Assignment - Deleting resources
Guided Assignment - Deleting resources
Assignment - Deleting resources - Solution
Protect your API keys

38 Topics
Section overview
A short history of JavaScript
Your first Postman script
Your first API test in Postman
Defining JavaScript variables
Using “let” to define JavaScript variables
Conventions for naming JavaScript variables
Working with JavaScript variables
Constants in JavaScript
Data Types in JavaScript
Data Types in JavaScript
Working with JavaScript variables
Swap two variables in JavaScript
Variables
Mathematical operations
Mathematical operations
Code blocks and variable scopes
Defining a function in JavaScript
Returning values from functions
Built-in JavaScript functions
Generate a random email address
Arrow functions
Callback functions
Callback functions in Postman
Objects in JavaScript
Object methods
Object methods - using a property from the object
Alternative syntax for defining and accessing object properties
JavaScript objects and JSON
Parsing JSON in Postman
Writing assertions in Postman
Storing a list of items - Arrays in JavaScript
Navigating object properties and arrays
Navigating complex data structures in Postman
Navigating complex data structures
Built-in methods when working with arrays
Array methods
Conclusion

20 Topics
Introduction
Resources for this section
Verifying the response status code
Assignment - Adding status code tests
Guided Assignment - Adding status code tests
Assignment - Adding status code tests - Solution
Testing the response body
Asserting the data type of a property
The Postman Cheat Sheet & Quick Reference Guide
Refactoring tests
Testing the API error handling
Organizing requests and reusing tests
Assignment - Reduce duplication in tests
Guided Assignment - Reduce duplication in tests
Assignment - Reduce duplication in tests - Solution
Boundary testing
Assignment - Boundary testing
Assignment - Boundary testing
Assignment - Boundary testing - Solution
Documenting requests in Postman

36 Topics
Section overview
Setting Postman variables from scripts
Passing data from one request to the other
Troubleshooting setting collection variables from scripts
Assignment - Set the cartId in a Postman variable
Guided Assignment - Set the cartId in a Postman variable
Assignment - Set the cartId in a Postman variable - Solution
Assignment - Store all dynamic data in Postman variables
Guided Assignment - Store all dynamic data in Postman variables
Assignment - Store all dynamic data in Postman variables - Solution
Getting Postman variables from scripts
Assignment - Getting Postman variables from scripts
Guided Assignment - Getting Postman variables from scripts
Assignment - Getting Postman variables from scripts - Solution
Working with Postman collection variables from scripts
JavaScript: Comparing data types
JavaScript: For loop statement
for loop statement
JavaScript: Iterating over arrays (for loop)
Iterating over arrays (for loop)
JavaScript: Conditionals - if statements
Conditionals
Searching for data in a response (for loop)
Writing assertions against an array
Iterating over arrays (forEach loop)
Iterating over arrays (forEach loop)
Filtering a list of items
JavaScript: Finding data in an array with find
Assignment - use find instead of forEach
Guided Assignment - use find instead of forEach
Assignment - use find instead of forEach - Solution
Managing the data type in Postman variables
Passing data from the pre-request script to the request/tests
Where can you use Postman variables?
Removing collection variables
Recap: Using Postman variables in scripts

12 Topics
Test-driven development (TDD)
Postman Environments & Environment variables
Troubleshooting environment variables
Using if statements to include or exclude tests
Storing secrets in environments
Exporting and importing environments
Environment variables quiz
Setting getting and removing environment variables from scripts
Getting variables in scripts according to the scope
Migrating from collection variables to environment variables
Global variables
Setting getting and removing global variables from scripts

30 Topics
Section overview
Resources for this section
Assignment - Add status code tests
Guided Assignment - Add status code tests
Assignment - Add status code tests - Solution
Assignment - Use Postman variables
Guided Assignment - Use Postman variables
Assignment - Use Postman variables - Solution
Assignment - Reducing manual work by using variables & scripts
Guided Assignment - Reducing manual work by using variables & scripts
Assignment - Reducing manual work by using variables - Solution
JavaScript: Transforming an array with map()
Working with complex data structures in Postman variables
Assignment - Write tests for Create board request
Guided Assignment - Write tests for Create board request
Assignment - Write tests for Create board request - Solution
Assignment - Dynamic board names
Guided Assignment - Dynamic board names
Assignment - Dynamic board names - Solution
Assignment - Write tests for the TODO and DONE lists
Guided Assignment - Write tests for the TODO and DONE lists
Assignment - Write tests for the TODO and DONE lists - Solution
Write tests for the Create card request
Guided Assignment - Write tests for the Create card request
Assignment - Write tests for the Create card request - Solution
Assignment - Test the request Move card to DONE list
Guided Assignment - Test the request Move card to DONE list
Assignment - Test the request Move card to DONE list - Solution
Clean-up work
Resilient scripts & tests

8 Topics
Ongoing course update
Chai Assertion Library
Assertions
Chai Assertion Library
Assertions on arrays
Assertions on nested objects
How to write assertions in Postman (objects arrays nested properties)
Testing headers and cookies

9 Topics
Overview
Running the collection manually
Postman Collection Runner
Collection runner usage limits
Scheduled collection runs
Running Postman collections as part of CI/CD
Postman CLI (installation & basic usage)
Newman CLI (installation & basic usage)
Troubleshooting Node.js / npm / Newman Problems (for Windows)

8 Topics
Section overview
Login and logout
Running a collection
Running a collection from an URL
Running a collection from a file
Using environments
Advanced configuration options
Usage restrictions and limitations

10 Topics
Installing Newman
Troubleshooting Newman installation problems (for Windows)
Running a collection from an URL
Running a collection from a file
Specifying environments with Newman
Generating HTML reports
Generating JUnit reports
Searching for Newman reporters
Advanced configuration options
Conclusion

16 Topics
Section overview
How to run Jenkins with Docker
Defining jobs in Jenkins: Jenkins freestyle and Jenkinsfile
Using Postman CLI in Jenkins (freestyle)
Managing secrets in Jenkins
Using Postman CLI in Jenkins with Jenkinsfile
Using Newman in Jenkins (freestyle)
Using Newman in Jenkins (Jenkinsfile)
Publishing an HTML report in Jenkins (freestyle)
Publishing an HTML report in Jenkins (Jenkinsfile)
Publishing JUnit report (Freestyle)
Publishing JUnit report (Jenkinsfile)
Troubleshooting failed builds with reports
Troubleshooting Jenkins Problems (for Windows)
Troubleshooting Jenkins Problems (for macOS Linux)
Troubleshooting HTML reports

2 Topics
Gitlab CI
TeamCity

5 Topics
Overview
Creating a basic workflow / scenario
Advanced workflows
Clearing unused Trello boards
Multiple workflows with the same collection

4 Topics
Using workflows to create data-sets
Using external data files - Basic usage
Using external data files - Writing tests
Using external data files - Advanced usage

6 Topics
Introduction
Using the Git version control system - Overview
Using the Git version control system - Hands on
Team Workspaces - Creating and sharing a workspace
Team Workspaces - Understanding users and permissions
Team Workspaces - Managing user permissions

6 Topics
Introduction to mock servers
Why use a mock server?
Create your first mock server
Practical example: using mock servers for front-end development
Recording responses from an existing API
Known limitations

2 Topics
Sending and testing multipart/form-data requests (file upload form)
Automatic the upload and testing process with Newman

4 Topics
Basic access authentication
OAuth2 Authorization Flow (Authorization Code Grant)
Form-based / Session-based authentication
JSON Web Tokens (JWT)

8 Topics
You ask I answer
Reusing tests in multiple requests
How to deal with CSV responses?
Writing files to the file system
Passing variables dynamically to the request at runtime (Newman)
Sending requests from scripts
How can I connect to my database using Postman?
JSON Schema validation in Postman

2 Topics
Designing APIs with Postman (OpenAPI 3.0.0 / Swagger)
Sending GraphQL Queries in Postman

1 Topic
Postman challenge webinars

1 Topic
Bonus Lecture

  Write a Review

Postman: The Complete Guide - REST API Testing

Go to Paid Course