Postman The Complete Guide REST API Testing
What you’ll learn
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
Requirements
Basic programming and/or JavaScript knowledge is required (needed for writing tests)
Basic HTTP knowledge required (address, message body, headers, cookies, …)
Basic knowledge about RESTful APIs and JSON
Basic Jenkins experience, if an integration with Jenkins is desired
Basic NodeJS/NPM experience (needed for test automation)
Optional – Basic Docker experience (for Jenkins or Newman)
A computer with Windows, macOS or Linux is required for viewing the lectures and installing Postman. Using a mobile phone/tablet is not recommended.
Registering to a few reputable public APIs is required for you to be able to follow along with the course
Description
RESTful APIs (or simply REST API) are everywhere nowadays, but at the same time, they are getting more complex to get started with: different HTTP methods (GET, POST, PUT, PATCH, DELETE), headers, cookies, dealing with file uploads or authentication with API keys, tokens, OAuth and so much more.This is where the Postman App comes in! Postman allows you very quickly to create a request with the required HTTP method and parameters, submit the request and easily inspect the results. I have created this course for testing engineers as well as for software developers or other technical positions. Postman can help you during the development of your API, as well as after the API is completed, by running tests that make sure your API is still working as intended.In the first part of the course, we will start exploring the features of Postman and continue by writing API tests with the intention of integrating them into a CI server where the tests will run on a current basis.But this is not the normal course you take part in. Because your needs may be different and because I hate leaving you wondering what to do next, the second part of the course will include user questions and answers to problems that were not yet covered in the course or that are more specific and may not interest everybody.So let’s look at what you are going to learn:HTTP request methods (GET, POST, PUT, PATCH, DELETE)JSON formatStart with simple requests and advance toward more complex scenariosLearn to deal with authentication/authorization mechanisms like Basic Auth, API Keys, or OAuth.Start writing API testsOrganize tests in collections and share them with your teamRun API tests in Jenkins or any other CI serverYou ask, I answerSo after this course, you will know how to use Postman as a pro.Excited to learn Postman? Join the course today.
Overview
Section 1: Introduction and first steps in Postman
Lecture 1 Course overview
Lecture 2 About the course
Lecture 3 How to install Postman
Lecture 4 A quick introduction to APIs
Lecture 5 Your first Postman request
Lecture 6 Troubleshooting Postman errors
Lecture 7 Using Postman on the web
Lecture 8 A brief overview of HTTP
Lecture 9 The Postman Landscape
Section 2: Creating REST API requests with Postman
Lecture 10 Section overview
Lecture 11 Postman collections
Lecture 12 Storing configuration in collection variables (2022)
Lecture 13 Modifying collection variables
Lecture 14 GET request
Lecture 15 Visualizing responses in Postman
Lecture 16 Query parameters
Lecture 17 Misconceptions about API parameters
Lecture 18 Assignment #1 – Query parameters
Lecture 19 Assignment #1 – Query parameters – Solution
Lecture 20 Shortcuts in Postman
Lecture 21 Path variables
Lecture 22 POST request
Lecture 23 Assignment – Check cart contents
Lecture 24 Assignment – Check cart contents – Solution
Lecture 25 JSON format explained
Lecture 26 POST request with JSON
Lecture 27 Troubleshooting – Add to cart
Lecture 28 GET vs POST
Lecture 29 API Authentication
Lecture 30 Troubleshooting HTTP status codes
Lecture 31 Assignment – Place an order
Lecture 32 Troubleshooting – Place an order
Lecture 33 Assignment – Place an order – Solution
Lecture 34 Using random data in requests (random variables)
Lecture 35 Working with HTTP headers in Postman
Lecture 36 Common questions about HTTP headers
Lecture 37 Headers vs query vs params
Lecture 38 Exporting and Importing a Postman collection
Lecture 39 PATCH request method
Lecture 40 Assignment – PATCH request method
Lecture 41 Assignment – PATCH request method – Solution
Lecture 42 Using Postman variables to avoid duplication
Lecture 43 PATCH request method – continued
Lecture 44 PUT request method
Lecture 45 DELETE request method
Lecture 46 Assignment – Delete an order
Lecture 47 Assignment – Delete an order – Solution
Lecture 48 GET, POST, PUT, PATCH … What is the difference?
Lecture 49 HEAD request method
Section 3: Practice section – Building REST API requests
Lecture 50 Section overview
Lecture 51 Why learn to use real-world APIs?
Lecture 52 Troubleshooting
Lecture 53 Using the API documentation – Assignment
Lecture 54 Using API documentation – Assignment Solution
Lecture 55 Using identifiers when working with resources
Lecture 56 Assignment – Creating resources – Lists
Lecture 57 Assignment – Creating resources – Lists – Solution
Lecture 58 Assignment – Creating resources – Cards
Lecture 59 Assignment – Creating resources – Cards – Solution
Lecture 60 Assignment – Managing resources
Lecture 61 Assignment – Managing resources – Solution
Lecture 62 Assignment – Deleting resources
Lecture 63 Assignment – Deleting resources – Solution
Section 4: Writing API tests and scripts
Lecture 64 Introduction
Lecture 65 Course updates
Lecture 66 The Postman Cheat Sheet & Quick Reference Guide
Lecture 67 Your first API test in Postman
Lecture 68 Testing an API – Writing more tests
Lecture 69 Refactoring Tests
Section 5: Writing API tests and scripts using Postman variables
Lecture 70 Variables in Postman
Lecture 71 Global variables
Lecture 72 Environments
Lecture 73 Session variables (new in Postman 6.2!)
Lecture 74 Bulk editing removed new in Postman 6.2!)
Lecture 75 Pre-request scripts in Postman
Lecture 76 Understanding different variable scopes / types
Lecture 77 How to setup different URLs using environments in Postman
Lecture 78 Debugging tests
Lecture 79 Notice about the old Postman scripting API
Section 6: Advanced assertions
Lecture 80 Section overview
Lecture 81 Postman assertion basics
Lecture 82 Chai Assertion Library
Lecture 83 Assertions
Lecture 84 Assertions on arrays
Lecture 85 Assertions on nested objects
Lecture 86 How to write assertions in Postman (objects, arrays, nested properties)
Lecture 87 Testing headers and cookies
Section 7: Automatically running tests
Lecture 88 Overview
Lecture 89 Postman collection runner
Lecture 90 Postman monitors
Lecture 91 Automating with Newman (Overview)
Lecture 92 Short introduction to NodeJs and NPM
Lecture 93 Installing Newman
Lecture 94 Troubleshooting Node.js / npm / Newman Problems (for Windows)
Lecture 95 Running a collection with Newman
Lecture 96 Newman v3 to v4 Migration Guide
Lecture 97 3 ways to access your Postman collection from Newman
Lecture 98 Specifying environments with Newman
Lecture 99 Prerequisites for running Newman on Jenkins
Lecture 100 Troubleshooting Jenkins Problems (for Windows)
Lecture 101 Troubleshooting Jenkins Problems (for macOS, Linux)
Lecture 102 Running a collection with Jenkins and generating a report
Lecture 103 Creating an HTML report in Jenkins
Lecture 104 Generating better HTML reports
Lecture 105 Customizing HTML reports
Lecture 106 Troubleshooting HTML reports
Lecture 107 Running a collection from a Git repository with Jenkins
Section 8: Running Newman with other CI servers / tools
Lecture 108 Gitlab CI
Lecture 109 TeamCity
Lecture 110 Short introduction to Docker (optional)
Lecture 111 Running Jenkins with Docker
Lecture 112 Running Newman with Docker
Section 9: Workflows and Scenarios
Lecture 113 Overview
Lecture 114 Creating a basic workflow / scenario
Lecture 115 Advanced workflows
Lecture 116 Multiple workflows with the same collection
Section 10: Data driven tests: Running a request multiple times with different data sets
Lecture 117 Using workflows to create data-sets
Lecture 118 Using external data files – Basic usage
Lecture 119 Using external data files – Writing tests
Lecture 120 Using external data files – Advanced usage
Section 11: Team Collaboration
Lecture 121 Introduction
Lecture 122 Using the Git version control system – Overview
Lecture 123 Using the Git version control system – Hands on
Lecture 124 Team Workspaces – Creating and sharing a workspace
Lecture 125 Team Workspaces – Understanding users and permissions
Lecture 126 Team Workspaces – Managing user permissions
Section 12: Mock servers
Lecture 127 Introduction to mock servers
Lecture 128 Why use a mock server?
Lecture 129 Create your first mock server
Lecture 130 Practical example: using mock servers for front-end development
Lecture 131 Recording responses from an existing API
Lecture 132 Known limitations
Section 13: File uploads (testing, automatic uploads, uploading multiple files)
Lecture 133 Sending and testing multipart/form-data requests (file upload form)
Lecture 134 Automatic the upload and testing process with Newman
Section 14: Authentication / Authorization
Lecture 135 Basic access authentication
Lecture 136 OAuth2 Authorization Flow (Authorization Code Grant)
Lecture 137 Form-based / Session-based authentication
Lecture 138 JSON Web Tokens (JWT)
Section 15: Advanced topics and user questions
Lecture 139 You ask, I answer
Lecture 140 Reusing tests in multiple requests
Lecture 141 How to deal with CSV responses?
Lecture 142 Writing files to the file system
Lecture 143 Passing variables dynamically to the request at runtime (Newman)
Lecture 144 Sending requests from scripts
Lecture 145 How can I connect to my database using Postman?
Lecture 146 JSON Schema validation in Postman
Section 16: New features in Postman
Lecture 147 Designing APIs with Postman (OpenAPI 3.0.0 / Swagger)
Lecture 148 Sending GraphQL Queries in Postman
Section 17: JavaScript fundamentals
Lecture 149 Section overview
Lecture 150 A short history of JavaScript
Lecture 151 Data Types in JavaScript
Lecture 152 Variables
Lecture 153 Conditionals
Lecture 154 Functions
Lecture 155 Data structures: arrays
Lecture 156 Data structures: objects
Lecture 157 Loops
Lecture 158 Modern JavaScript
Lecture 159 Applying what you have learned to Postman
Lecture 160 Conclusion
Section 18: Postman Developer Challenge
Lecture 161 Postman challenge webinars
Section 19: Last words
Lecture 162 Bonus Lecture
This course is targeted towards testing engineers and developers.
Course Information:
Udemy | English | 14h 46m | 4.39 GB
Created by: Valentin Despa
You Can See More Courses in the Developer >> Greetings from CourseDown.com