REST API Automation Testing from Scratch - REST Assured Java

Video Description

Join the most popular REST API course

About This Video

  • Integrate multiple API's with common Json response values
  • Understand the structure of complex nested Json and its array notations
  • Build up Rest Assured automation test for the OAuth project

In Detail

The REST Assured API is a powerful API released by Google (just like Selenium for Web) to automate REST APIs.This course has been updated with OAuth 2.0 Google Authentication real time examples. 70% of the IT industry are now heading towards this API for automating services. Learn everything you need to know about REST API automation, even if you've never worked before on this domain.

This course covers Basic to Advanced level with REST Assured, Postman, Java, TestNG, framework implementation from scratch with rich examples like Jira, Twitter, YouTube, Google Maps API examples.

The course is prepared with the utmost care, picking real-world scenarios based on what industry does to test REST APIs, and they are neatly delivered with every basic concept up to framework building level. On course completion you will be mastered in REST API automation and will be able to implement it successfully into your workplace. By end of this course, you will have complete knowledge on REST API automation testing.

Publisher Resources

Download Example Code

Table of Contents

  1. Chapter 1 : Rest API Basics and Terminology
    1. Course FAQ's/Syllabus (** Must Watch****) 00:10:02
    2. Introduction to REST API and where it is used in Project Architecture 00:08:58
    3. Real time Usage of API's in industry with Examples 00:11:36
    4. Understanding GET, POST, PUT DELETE Http Crud operations of API 00:11:18
    5. What are Path,Query Parameters & Headers in Rest API 00:11:18
  2. Chapter 2 : Getting started with Rest API Testing
    1. Create New Project 00:08:13
    2. Understand Add Place API and execute it through Postman 00:06:55
    3. Understand Get & Delete Place API using GET,Delete HTTp Methods using Postman 00:11:09
    4. Update Place API using PUT http method using Postman 00:06:19
  3. Chapter 3 : Rest Assured setup for API Automation
    1. Introduction on Test API's 00:09:11
    2. Setting up Test Project with RestAssured API's 00:08:43
    3. Build Rest API Automation Test to Add Place and validate Status codes 00:16:35
  4. Chapter 4 : Validating the Rest API Responses
    1. Assertions on Json Response Body and Headers through Automated code 00:10:15
    2. Parsing the Json Response body using JsonPath class 00:08:50
    3. Integrating the Multiple API's with common Json response values 00:07:27
    4. Building End to End Automation using GET, POST and PUT Http Methods 00:10:46
    5. Importance of Junit/TestNG Assertions in validating the responses 00:06:22
  5. Chapter 5 : Diving in Depth-Automating Rest API's
    1. Introduction Understanding Structure of Complex Nested Json and its array notations 00:09:07
    2. Retrieving the Json Array Size and its elements using JsonPath 00:07:33
    3. Iterating over every element of Json Array and accessing elements in it 00:10:05
    4. Retrieving Json Nodes on Condition logic using JsonPath 00:07:36
    5. Real Time example to solve Business logic through Json response 00:14:25
  6. Chapter 6 : Handling Dynamic Json Payloads with Parameterization
    1. Why Dynamic Json payloads are important to understand 00:04:58
    2. Introduction to Library API 00:05:55
    3. Rest Assured Test for Library API Add Book http method 00:07:04
    4. Sending parameters to payload from Test 00:12:10
    5. Understanding TestNg Data provider for parameterization 00:11:00
    6. Example on Parameterization of API Tests with multiple data sets 00:07:18
    7. How to handle with static json payloads 00:10:27
  7. Chapter 7 : Real World Example - Automating Jira API's
    1. How Jira API Works? 00:11:03
    2. Cookie Authentication API for Jira requests 00:16:26
    3. Jira GET, POST API Scripting for creating bugs 00:14:10
    4. Defining Path Parameters in Rest Assured code using Add Comment API 00:12:43
    5. Importance of Session Filter cookie in Rest Assured Code 00:10:24
    6. Sending Attachments to Rest API using MultiPart method in Rest Assured 00:11:56
    7. Integrating Query Params and Path Params in single test to restrict results 00:07:16
    8. Parsing Complex Jira Json response to retrieve the added Comment with code logic 00:13:31
    9. Importance of Assertions and Https Validations on Rest API's 00:05:16
  8. Chapter 8 : Handling Google/Facebook oauth 2.0 Authorization Grant types
    1. Introduction to OAuth 2.0 and different Grant types 00:12:24
    2. Understand Grant Type Authorization flow with real time example 00:20:02
    3. Authorization Part 2 Flow procedure in achieving OAuth 2.0 Authentication mechanism 00:25:13
    4. Register Admin User Part 1 Details on Practise OAuth 2.0 project to retrieve Courses list 00:10:22
  9. Chapter 9 : Rest Assured Automation for oauth 2.0 Authorization Grant types
    1. Building up Rest Assured Automation Test for the OAuth Project 00:15:18
    2. Integration Web UI Automation to generate Authorization code 00:07:01
    3. Formatting URL String to retrieve code using java methods 00:15:02
    4. How to deal with Client Credentials Grant type for OAuth flow 00:12:36
  10. Chapter 10 : Deserialization using POJO classes with Rest Assured
    1. What is Serialization and Deserialization in Rest Assured 00:15:12
    2. Libraries needed to support Serialization in Rest Assured 00:12:00
    3. Strategies in Parsing Complex nested Json using POJO classes 00:18:41
    4. Creating POJO classes for the real time Nested Array Json 00:17:21
    5. End to end Automation examples using POJO Deserialization 00:12:31
    6. Create Service Get Handler Solving Complex Queries from Json with simple POJO methods -Part 1 00:13:24
    7. Solving Complex Queries from Json with simple POJO methods-Part 2 00:15:43
  11. Chapter 11 : Serialization of Input Payload using Google Maps API example
    1. Google Maps Add Place Json to implement Serialization 00:09:48
    2. Build POJO classes for constructing Json Payload to API Rec 12-19-19 2 00:10:34
    3. Complete End to end Test case with Serialization Implementation Rec 12-19-19 34 00:13:23
  12. Chapter 12 : Understand Request and Response Spec Builders in Rest Assured
    1. Significance of Spec Builders in Rest Assured Rec 12-19-19 5(builderDoc) 00:11:43
    2. Practical Example in implementing Spec Builders and optimize code Rec 12-19-19 00:13:19
  13. Chapter 13 : Rest API Framework Learning Plan***Must Watch****
    1. Learning Plan 00:06:19
  14. Chapter 14 : Maven and Cucumber Basics (SKIP IF YOU ALREADY KNOW THE BASICS)
    1. Importance of Maven in Framework development 00:10:58
    2. Installing and configuring Maven 00:11:05
    3. Understanding Terminologies of Maven 00:15:54
    4. Creating Maven Project and importing into eclipse 00:11:18
    5. Introduction to Cucumber 00:11:05
    6. What is Gherkin syntax and how it works 00:16:31
    7. Understand the Cucumber Scenarios Usage 00:16:09
    8. Feature files and StepDefination Importance in Cucumber 00:03:54
    9. cucumber project creation template 00:11:33
    10. Understanding cucumber dependencies 00:11:38
    11. Understand the Terminologies of Automation 00:15:22
    12. Mapping step definition to feature file 00:11:08
    13. Tidygherkin plugin to generate step definitions. 00:09:28
    14. Running the Tests with testRunner 00:14:01
    15. Importance of regular expressions in feature files 00:13:05
    16. How to reuse functions with different data 00:13:45
  15. Chapter 15 : Cucumber BDD API Framework Development from Scratch - 1
    1. Creating Maven project with Cucumber Rest Assured Dependencies 00:09:46
    2. Building Cucumber Feature file for Rest Assured API Tests 00:09:34
    3. Building Test Runner and Step Definition files for Add Place API Feature Test 00:13:33
    4. Implementing Real code in Step Definition files with reusable components 00:14:06
    5. Running the Test in Cucumber Standards with necessary Configuration changes 00:15:01
    6. Building Utility Files and Implement Logging feature in Framework 00:11:49
    7. Implement Mechanism to drive Global property values from Properties file 00:12:18
    8. Data Driven Testing Mechanism for API Tests using Cucumber example feature 00:13:41
    9. Parameterize API Test with multiple Data sets using Cucumber Framework features 00:09:34
    10. What are Enum classes? How Framework can utilize the Enum concepts 00:19:33
    11. Removing Hardcoded resource details with Enum class Methods 00:11:50
    12. Build End to End Testcase with Add and Delete Place in Framework Standards -1 00:17:04
    13. Build End to End Testcase in Framework Standards -2 00:09:10
    14. Creating Additional Scenarios in Framework to reuse existing Step Definitions -4 00:16:40
    15. Importance of Cucumber Hooks in setting up Preconditions for API Tests -5 00:12:31
    16. Optimizing the Framework Tests with all necessary validations -6 00:05:57
    17. Running the Complete Framework using Maven commands 23/1 00:08:15
    18. Generate Excellent Cucumber HTML reporting with additional Plugins -23/2 00:16:58
  16. Chapter 16 : Cucumber BDD API Framework Development from Scratch - 2
    1. Introduction to Jenkins CI tool 00:04:13
    2. Integrating the API Framework into Jenkins and triggering with New job setup 24 00:06:20
    3. Setting up Parameterized Jenkin Job for API Framework with multiple Tags 24/1 00:08:33
  17. Chapter 17 : Excel Integration with Rest Assured Test
    1. What is Apace POI API & Download Instructions 00:10:09
    2. Strategy to Access Excel Data 00:15:18
    3. Getting rows and its cells from Sheet 00:15:16
    4. Retrieving Data from Excel based on condition 00:08:48
    5. Practise Exercise- Excel Driven testing -1 00:11:46
    6. Practise Exercise- Excel Driven testing -2 00:10:59
    7. Practise Exercise- Excel Driven testing -3 00:10:00
    8. Introduction to Library API 00:07:48
    9. Library API Postman and Rest Assured examples 00:10:38
    10. Conversion of HashMap into Json 00:14:12
    11. Excel Integration with Rest Assured Test 00:15:23
  18. Chapter 18 : Core Java basics
    1. Java program principles 00:08:32
    2. Classes,objects in Java 00:17:53
    3. Strings in Java 00:15:54
    4. String Practise exercises 00:09:23
    5. What is Interface? 00:11:22
    6. How Java classes can take advantage of Interface? 00:10:11
    7. Usage of Inheritance in Java 00:10:59
    8. Practical examples on types of inheritances 00:07:04
    9. Introduction to Arrays 00:08:57
    10. Single dimensional and Multidimensional arrays usage 00:12:37

Product Information

  • Title: REST API Automation Testing from Scratch - REST Assured Java
  • Author(s): Rahul Shetty
  • Release date: January 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781789133813