REST Assured API Automation from scratch + Framework + CI

Only course to become an API testing expert, OAuth2.0 [Google/Spotify Live Examples] & Design Production Level Framework

  • 0.0 (0 Reviews)
  • 0 Students
  • 274 Lessons
  • Omprakash Chavan

Course Overview

Course Updates:

Nov 2023: This course fully supports latest Rest Assured version 5.3.2, latest Java 21 and latest versions of all supporting libraries.


Why learn Rest Assured and REST API automation?

REST Assured API is one of the most popular library when it comes to automating the REST APIs. Most of the today's web applications are backed by the Micro services architecture and the REST APIs. Make no mistake, REST is gaining a lot of popularity amongst the developer community.

As a QA engineer, it becomes very important to test the REST APIs as a working API is crucial for a product. With great adoption of OAuth 2.0 and Open ID Connect authentication mechanisms, it also becomes important to build an in-depth understanding of these authentication mechanisms. To speed up product delivery, the industry is gradually moving towards end to end continuous integration (CI) and continuous development process (CD). So it becomes critical that the backend API services are automated to facilitate and speed up this process.

This is where the role of a QA engineer becomes of utmost importance to be able to automate the backend API services. This is why you would want to learn everything about the REST Assured library to confidently automate the REST APIs and lead the effort single handedly. And, you have come to the right place!


Why this is the right course for you?

This REST Assured course is a one stop solution for all your API automation needs. This course will take you from the beginner level, all the way to be able to design and implement industry standard production ready API automation framework. By the end of the course, you will be confident enough to call yourself as an expert in the REST API automation space.

  • This is probably the only course that covers serialization and de-serialization in great detail and that too with complex POJO examples.

  • This is the only course that explains many of the authentication and authorization schemes in REST API, in a simple manner and with live examples. For OAuth2.0, we have covered two famous APIs - Google and Spotify.

  • This is the only course that values your precious time. Lectures are short, crisp and to the point. I have spent a great amount of time editing the videos so that you don't have to waste your time just to learn a simple concept.

  • This course covers many topics you will not find in other courses, for e.g. Lombok, Jackson Databind API, JSON Assert, Hamcrest assertions, etc.

  • Before we start learning REST Assured and many of its cool features, I'll spend a great amount of time to explain you about the API basics, the HTTP concepts, what is REST, the HTTP methods, POSTMAN, Mocking APIs, JSON and JSON Path and also the basics of Java Programming language. These are the essentials one must become familiar with before jumping on with the REST Assured automation.

  • I'll explain you each and every REST Assured concept with live coding and I'll not just write the code. I'll also explain you what happens behind the scenes. This is the best way to learn something new. "Why" and "How" are more important than "What"!

  • You will learn how to think like an automation lead, plan and design the automation framework, optimizing the code, write clean tests and follow good programming practices. For e.g. you will always see me formatting the code (I hate poorly formatted code). It's a small thing, but is very important!

  • I'm VERY RESPONSIVE in the Q&A section. I respond to queries within 24 hours. If the time zone difference is not that huge, I can respond within 3-12 hours.

So, "Rest Assured", by the end of this course, you will become an expert!


What topics are covered in this course?

Here's the list of all the important concepts covered in this course:

  • API Essentials

  • Postman Essentials

  • JSON Essentials

  • HTTP Essentials

  • Postman Mock Server

  • Java Programming Basics

  • Groovy JsonPath

  • Jayway JsonPath

  • Groovy Vs Jayway

  • Rest Assured - Setup

  • Rest Assured - Getting Started

  • Rest Assured - Logging

  • Rest Assured - Handling Headers

  • Rest Assured - Automate Get

  • Rest Assured - Hamcrest Assertion

  • Rest Assured - Hamcrest Collection Matchers

  • Serialization & De-serialization: Concept

  • Serialization & De-serialization: POJOs

  • Serialization & De-serialization: Role of Jackson API

  • Serialization & De-serialization: HashMap to JSON object

  • Serialization & De-serialization: ArrayList to JSON array

  • Serialization & De-serialization: Jackson Annotations

  • Serialization & De-serialization: Jackson ObjectMapper

  • Serialization & De-serialization: Jackson ObjectNode

  • Serialization & De-serialization: Jackson ArrayNode

  • Serialization & De-serialization: Complex POJO Example

  • Serialization & De-serialization: Full JSON body matching

  • Serialization & De-serialization: Parameterization using TestNG Data provider

  • Rest Assured - Request Specification

  • Rest Assured - Response Specification

  • Rest Assured - Automate Post, Put, Del

  • Rest Assured - Multiple ways to send request payload

  • Rest Assured - Complex JSON in request body

  • Rest Assured - Request Parameters

  • Rest Assured - Multipart Form Data

  • Rest Assured - Form URL Encoded

  • Rest Assured - File upload and download

  • Rest Assured - JSON Schema Validation

  • Rest Assured - Logging Filters

  • Rest Assured - Configs

  • Authentication schemes - Form/Session Based Authentication

  • Authentication schemes - Session Filter

  • Authentication schemes - CSRF Token

  • Authentication schemes - Handling Cookies

  • Authentication schemes - OAuth2.0

  • Authentication schemes - OpenID Connect

  • Authentication schemes - OAuth Vs Open ID Connect

  • Authentication schemes - ID Token

  • Authentication schemes - OAuth Authorization Grant Flow

  • Authentication schemes - OAuth Implicit Grant Flow

  • Authentication schemes - OAuth Client Credentials Flow

  • Authentication schemes - Basic Authentication

  • Authentication schemes - Digest Authentication

  • Authentication schemes - Bearer Token

  • Authentication schemes - APIKey

  • Google OAuth 2.0 - Configure and setup client app for authorization code grant flow

  • Google OAuth 2.0 - Fetch auth code, access token and refresh token

  • Google OAuth 2.0 - Renew access token

  • Google OAuth 2.0 - Automate Get User Profile API

  • Google OAuth 2.0 - Automate Send Email API

  • Google OAuth 2.0 - Implicit grant flow implementation

  • Google OAuth 2.0 - Open ID connect flow implementation

  • Spotify OAuth 2.0 - Configure and setup client app for authorization code grant flow

  • Spotify OAuth 2.0 - Fetch auth code, access token and refresh token

  • Spotify OAuth 2.0 - Renew access token

  • Spotify OAuth 2.0 - Automate Playlist API


Framework goals accomplished in this course:

  • Scalable and extensible

  • Reusable Rest Assured specifications

  • Reusable Rest Assured API requests

  • Separation of API layer from test layer

  • POJOs for Serialization and Deserialization

  • Singleton Design Pattern

  • Lombok for reducing Boilerplate code

  • Builder pattern for Setter methods in POJOs

  • Robust reporting and logging using Allure

  • Automate positive and negative scenarios

  • Support parallel execution

  • Data driven using TestNG Data Provider

  • Automated access token renewal

  • Maven command line execution

  • Integration with Git

  • Integration with Jenkins


Tech stack and tools covered in this course:

  • Rest Assured

  • TestNG

  • Java

  • Allure Reports

  • Hamcrest

  • Jackson API

  • Lombok


What else is included in the course?

  • All the code & notes used in the lectures is available for download

  • You will get my full support in the Q&A

See more

FAQ

FAQ area empty

Course curriculum

50 chương 274 bài học 22 giờ 50 phút 7 bài học thử miễn phí
Chương 1 Welcome!
Chương 2 API Essentials
Chương 3 Postman Essentials
  • Install 3:36
  • Walkthrough 11:10
  • Generate API Key 2:42
  • API documentation 2:55
  • Execute GET Request 4:29
Chương 4 JSON Essentials
  • JSON Syntax and Data Types 3:36
  • Fetch JSON using Groovy's GPath 6:52
  • Fetch JSON using JayWay's JsonPath 8:54
  • Groovy's GPath Vs JayWay's JsonPath 2:43
  • Quiz
Chương 5 HTTP Essentials
  • HTTP Concepts: Safe, Idempotent and Cacheable 4:05
  • GET 4:25
  • HEAD 2:38
  • POST 6:12
  • PUT 4:54
  • DELETE 3:01
  • OPTIONS 2:46
  • PATCH 4:10
  • Status Codes 7:58
  • Status Codes - Live Examples 3:54
  • Quiz
Chương 6 Postman Mock Server
  • Setup Mock Server with Multiple Examples 10:25
  • Use Mock Server to Practice All HTTP Status Codes 2:50
  • Quiz
Chương 7 JAVA Programming Essentials
  • Section Intro 1:57
  • Java Basics - Part 1 9:26
  • Java Basics - Part 2 10:32
  • Java Basics - Part 3 17:36
  • Java Basics - Part 4 8:44
  • Control Structures 15:52
  • OOP - Inheritance and super keyword 15:12
  • Access modifiers 12:46
  • OOP - Encapsulation 9:27
  • OOP - Polymorphism 19:05
  • OOP - Abstraction using abstract class 12:48
  • OOP - Abstraction using interface 14:15
  • Exception handling 16:30
  • File operations 18:11
Chương 8 Rest Assured - Setup
  • What is Rest Assured? 1:36
  • Setup Pre-requisites 2:30
  • AVOID JAVA 8, 9 OR 10
  • Setup JAVA JDK - (Use Java 11 or latest LTS version) 3:58
  • Create project using IntelliJ 13:45
  • Eclipse - TestNG plugin download issue - Must watch before proceeding
  • Create project using Eclipse 13:36
  • Quiz
Chương 9 Download Resources
  • Download Code from here
  • Download the Slide Deck from here
Chương 10 Rest Assured - Getting Started
  • Why static imports? 5:37
  • Method chaining concept 5:07
  • Automate GET Request - Assert Status Code 7:47
  • Automate GET Request - Assert Response body 9:19
  • Automate GET Request - Extract Response 2:53
  • Automate GET Request - Extract Single Field 5:48
  • Hamcrest Assertion on Extracted Response 2:56
  • What is Hamcrest and Why it is popular? 4:04
  • Hamcrest Collection Matchers - Part 1 4:20
  • Hamcrest Collection Matchers - Part 2 3:34
  • Hamcrest Collection Matchers - Part 3 4:02
  • Hamcrest Collection Matchers - Part 4 2:45
  • Quiz
Chương 11 Rest Assured - Logging
  • Request and Response Logging 3:45
  • Log if Error 1:59
  • Log if Validation Fails 2:39
  • Blacklist Headers 2:56
  • Quiz
Chương 12 Rest Assured - Handling Headers
  • What are Headers? 6:59
  • Set Mock Environment for Headers 9:52
  • Multiple Headers in Request 4:05
  • Multiple Headers in Request - Using Headers 1:51
  • Multiple Headers in Request - Using Map 2:11
  • Multi Value Header 3:51
  • Response Headers - Assert 3:35
  • Response Headers - Extract 4:45
  • Response Headers - Extract Multi Value Header 2:37
  • Quiz
Chương 13 Rest Assured - Request Specification
  • What is Request Specification? 8:35
  • How to Reuse Request Specification? 3:40
  • BDD to non-BDD 6:23
  • Request Specification Builder 6:20
  • Default Request Specification 2:59
  • Query Request Specification 3:46
  • Quiz
Chương 14 Rest Assured - Response Specification
  • Create Response Specification 7:07
  • Response Specification Builder 2:51
  • Default Response Specification 1:56
  • Quiz
Chương 15 Rest Assured - Automate POST, PUT and DELETE
  • POST - BDD Style 13:50
  • POST - non-BDD Style 3:58
  • PUT 7:19
  • DELETE 3:21
  • Quiz
Chương 16 Rest Assured - Send Request Payload Multiple Ways
  • Send as a File 3:57
  • Send Nested JSON Object as a Map 8:02
  • Send JSON Array as a List - Create Mock Request 6:18
  • Send JSON Array as a List - Build Test Case 9:03
  • Send JSON Array as a List - Content Type Encoding 7:25
  • Quiz
Chương 17 Rest Assured - Send Complex JSON as Request Payload
  • Create a Mock Request with Complex JSON as Request Payload 5:53
  • Send Complex JSON using Map and List 16:18
  • Assignment - Automate Complex JSON
Chương 18 Rest Assured - Handling Request Parameters
  • Postman Echo Introduction 3:04
  • Single Query Parameter 6:06
  • Multiple Query Parameters 2:55
  • Multi Value Query Parameter 2:20
  • Path Parameter 4:45
  • Quiz
Chương 19 Rest Assured - Multipart Form Data
  • What is Multipart Form Data? 4:17
  • Automate Multipart Form Data 3:27
  • Quiz
Chương 20 Rest Assured - File Upload and Download
  • Upload File 5:51
  • Download File 7:31
  • Quiz
Chương 21 Rest Assured - Form URL Encoding
  • What is Form URL Encoding? 3:13
  • Automate Form URL Encoded Request Payload 4:42
  • Quiz
Chương 22 Rest Assured - JSON Schema Validation
  • What is JSON Schema? 5:19
  • Automate JSON Schema Validation 9:20
  • Class Path Options 1:55
  • Quiz
Chương 23 Rest Assured - Filters
  • Log Request and Response Specification to the Console 4:08
  • Log to File 4:20
  • Reuse Filters 2:50
Chương 24 Serialization and De-serialization
  • Serialization and De-serialization in Java 1:53
  • Serialization and De-serialization in Rest Assured 3:29
  • Object Mapping Support 4:41
  • Serialize Map to JSON Object using Jackson 7:14
  • Serialize List to JSON Array using Jackson 3:46
  • Serialize Jackson Object Node to JSON Object 7:00
  • Serialize Jackson Array Node to JSON Array 5:40
  • What is POJO? 8:00
  • Simple POJO: Create Mock Request 3:18
  • Simple POJO: Serialization 7:22
  • Simple POJO: De-serialization 6:14
  • Workspace POJO: Serialize and De-serialize 12:32
  • Workspace POJO: Parameterize Tests using TestNG Data Provider 5:55
  • Quiz
  • Assignment - Create POJO and serialize this JSON
Chương 25 Jackson Annotations
  • Not Null 2:47
  • Non Default 2:41
  • Non Empty 2:58
  • JSON Ignore and JSON Ignore Properties 4:34
Chương 26 Complex POJO - Live Practice
  • API Walkthrough 4:06
  • Create POJOs 11:21
  • Build Payload and Serialize 11:36
  • De-serialize and Assert Full Body [JSON Assert] 14:36
  • Challenges 3:39
  • Handle Different Data Types in Request and Response 17:55
  • Assert Field with Different Data Types 9:26
  • Automate One More Test Case 5:08
Chương 27 Coding challenges
  • Fetch all nested keys and values from a given JSON array
  • Fetch values of fields with same key name
Chương 28 Authentication and Authorization
  • Authentication Vs Authorization 2:30
  • Different Authentication Schemes 1:35
  • Basic Authentication 4:14
  • Digest Authentication 2:08
  • Bearer Authentication 2:48
  • API Key Authentication 3:26
  • What is OAuth? 8:49
  • What is OpenID Connect? 4:52
  • Quiz
Chương 29 OAuth Flows
  • OAuth Terminologies 3:41
  • Authorization Code Grant Flow 7:29
  • Implicit Grant Flow 4:39
  • Client Credentials Flow 5:42
  • Quiz
Chương 30 Google OAuth2.0
  • Introduction 4:33
  • Create Gmail Account 1:05
  • Create Client App 1:19
  • Enable Gmail API 1:06
  • Create Consent Screen 4:55
  • Create Client Credentials 2:57
  • Authorize App 11:39
  • Fetch Access Token and Refresh Token 5:04
  • Renew Access Token 3:05
  • Execute Get User Profile API 3:51
  • Execute Send Email API 4:52
  • Quiz
Chương 31 Google OAuth2.0 - Implicit Grant Flow and OpenID Connect
  • Implicit Grant Flow 6:35
  • OpenID Connect - ID Token [JWT Token] 12:05
  • Assignment - Let's learn more about the JWT Token
Chương 32 Google OAuth2.0 - Automate
  • Get Profile API 6:34
  • Send Email API 6:34
  • Assignment - Automate Gmail APIs: Delete/Get/List/Modify
Chương 33 Form Based Authentication
  • What is Session Based Authentication? 5:46
  • What is Form Based Authentication? 6:37
  • What is CSRF Token? 4:05
  • Setup Demo App 5:38
  • Demo App Walkthrough 6:22
  • Automate Post 5:49
  • Fetch Session ID using Session Filter 3:20
  • Automate Get Profile 6:34
  • HTML Validation 4:59
  • Quiz
Chương 34 Rest Assured - Handling Cookies
  • What is a Cookie? 8:40
  • Demo Application Cookie Flow 2:24
  • Sending Cookie 3:32
  • Sending Cookie using Cookie Builder 2:11
  • Sending Multiple Cookies 1:52
  • Fetch Single Cookie 3:07
  • Fetch Multiple Cookies 6:09
  • Quiz
Chương 35 Framework - Roadmap
  • Roadmap 7:40
  • Download Code from here
Chương 36 Framework - Spotify OAuth2.0
  • Introduction 3:39
  • Authorization API Intro 5:31
  • Register a Client App 1:45
  • Authorize App 5:22
  • Fetch Access Token and Refresh Token 4:56
  • Renew Access Token 3:27
  • Execute Create a Playlist API 4:02
  • Execute Get a Playlist API 1:49
  • Execute Update a Playlist API 2:24
Chương 37 Framework - Automate Tests
  • Automate Create a Playlist API 10:00
  • Automate Get a Playlist API 2:36
  • Automate Update a Playlist API 4:50
  • Automate Negative Scenarios 5:21
Chương 38 Framework - Create POJOs
  • Why Refactoring? 2:38
  • Create POJO Classes 5:38
  • Update Test Cases to use POJOs 10:56
  • Builder Pattern with POJOs 2:44
Chương 39 Framework - Create Reusable Methods
  • Create Spec Builder 4:21
  • Create Playlist API Reusable Methods 16:03
  • Create Rest Assured Reusable Methods 6:52
Chương 40 Framework - Token Manager
  • Renew Token Automatically 8:09
  • Check Token Expiry 11:02
  • Create Reusable Method 2:07
  • Create Reusable Spec 2:03
Chương 41 Framework - Routes
  • Create Routes 4:31
Chương 42 Framework - Property Loaders
  • Create Property Loader Utility 4:06
  • Create Config Loader - Singleton Design Pattern 11:01
  • Create Data Loader 4:23
Chương 43 Framework - Test Class Refactoring
  • Optimize Code 8:05
Chương 44 Framework - Lombok
  • Introduction 3:02
  • Setup 3:59
  • Implement without Builder 7:13
  • Implement with Builder 6:47
Chương 45 Framework - Allure Reporting
  • Introduction 2:47
  • Install 4:22
  • Add Dependency 4:10
  • Generate Reports 3:30
  • Add Display Name 2:24
  • Add Description 1:08
  • Add Links 4:09
  • Add Behaviors 2:46
  • Add Steps 4:14
  • Add Filter 5:13
  • Custom Folder Path 2:18
Chương 46 Framework - Maven Command Line
  • Execute using Maven 4:53
Chương 47 Framework - Important Optimizations
  • Use OAuth method to supply token 2:10
  • Java Faker API 8:44
  • Java Enum to store Status Codes 13:10
  • Enable Parallel Execution 10:35
  • Enable for Multiple Environments 6:30
Chương 48 Framework - Integration With GitHub
  • Create GitHub Repository 3:28
  • Git Clients - Various Options 3:22
  • Commit Code to GitHub Repository 8:53
  • How to Push Subsequent Changes? 3:13
Chương 49 Framework - CI
  • Install Jenkins on Windows 5:46
  • Install Jenkins on Mac 5:12
  • Create Automation Jenkins Job 11:03
  • Jenkins Auto Trigger: SCM Polling 7:25
  • Jenkins Auto Trigger: Build Frequency 3:10
  • Jenkins Auto Trigger: GitHub Web Hooks 10:58
Chương 50 Bonus Lecture
  • Bonus Lecture - What to learn next?

Requirment

  • ***You do not need any prior REST API working experience to get started with the course***

  • ***Basic Java Programming is covered in the course, so do not worry if you do not have much Java background***

  • ***No other knowledge required, except for willingness to learn and perform hands-on while you go through the course***

  • ***Do not worry if you face any issue, I'm always available in the Q&A to quickly help you out***

Outcomes

  • Become an Expert in REST API automation using REST Assured

  • Develop production ready framework using clean code practices and integrate with CI

  • Serialization & De-serialization with Complex POJOs [Live practice]

  • Become confident and lead the API Automation effort in your project from scratch

  • In-depth understanding of REST Assured Fundamentals from scratch

  • OAuth2.0 Live Examples - Google and Spotify API

  • Rest API Authentication Mechanisms with Live Examples

  • Learn how to use POSTMAN for REST API Execution

  • Learn how to Automate POSTMAN APIs using REST Assured

  • Learn how to mock REST APIs using POSTMAN Mock Server

  • Learn about Jackson Databind API [Annotations, Serialization and De-serialization]

  • Learn basics of TestNG, Maven, Jenkins, Git

  • Learn Allure Reporting and generate feature rich reports

  • Learn how to use Lombok to greatly reduce Boiler plate code

  • Confidently work with complex JSONs in request and responses

  • How to match full JSON body using Jackson and JSON Assert libraries

  • Automate session/Form based authentication + CSRF token using a demo application

  • Hamcrest Assertions

  • Automating tests using both the BDD and non-BDD styles

  • Java Programming Basics

  • Learn how to write clean test cases by following most of the industry best practices

  • Learn how to integrate the framework with GitHub

  • Learn how to auto-trigger automation from Jenkins using GitHub Web Hooks, SCM Polling and Build Frequency

Instructor

...
Omprakash Chavan

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all