Video description
Explore the world of REST API with this hands-on course. You’ll not only learn the concepts from scratch but also find out how giant companies such as Jira, Twitter, Facebook, and Google Maps are using REST API to automate their services.
The course starts with the basics of REST API and proceeds toward brushing up your Java skills. Next, you’ll become familiar with the concept of Postman and test APIs with Postman. As you advance, you’ll discover different types of REST requests and set up the REST assured environment for automation.
Next, you’ll optimize scripts to match framework standards and closely study the grant type authorization flow with an interesting example. Moving ahead, you’ll solve complex queries from JSON with simple POJO methods and learn to automate APIs with the help of many examples. Toward the end, you’ll migrate a project to the TestNG framework and understand the importance of Maven in framework development.
By the end of this course, you’ll have complete knowledge of REST API automation testing.
What You Will Learn
- Understand the REST API architecture
- Perform API testing with Postman
- Handle Google and Facebook OAuth 2.0 authorization grant types
- Create Maven project and import into Eclipse
- Study serialization and deserialization for JSON inputs and outputs
- Create BAT file to run the whole project with a single click
Audience
This course is perfect for manual testers and software engineers who are looking to learn automation testing. Even if you don’t have any programming background or experience in API testing, you can get started with this course. Every topic in this course is taught from scratch.
About The Author
Rahul Shetty: Rahul Shetty is the founder and trainer at Rahul Shetty Academy. He is a passionate software tester and has 13 years of rich experience in the IT industry. He has completed more than 300 offline training batches. Rahul has extensive knowledge in web automation testing, mobile automation testing, and API automation testing. He has also worked with various CMM-level organizations and managed the set-up of QA processes for projects.
Table of contents
- Chapter 1 : REST API Basics and Terminology
- Chapter 2 : Getting Started with REST API Testing
- Chapter 3 : REST Assured Setup for API Automation Testing
-
Chapter 4 : Validating the REST API Responses
- Assertions on JSON Response Body and Headers Through Automated Code
- Parsing the JSON Response Body Using JSON Path Class
- Integrating Multiple APIs with the Common JSON Response Values
- Building End-to-End Automation Using GET, POST, and PUT HTTP Methods
- Importance of Junit/TestNG Assertions in Validating the Responses
-
Chapter 5 : Diving in Depth Automating REST API
- Understanding the Structure of Complex Nested JSON and its Array Notations
- Retrieving the JSON Array Size and its Elements Using the JSON Path
- Iterating Over Every Element of the JSON Array and Accessing Elements in It
- Retrieving JSON Nodes on Condition Logic Using the JSON Path
- Real-Time Example to Solve Business Logic Using the JSON Response
-
Chapter 6 : Handling Dynamic JSON Payloads with Parameterization
- Why Dynamic JSON Payloads are Important to Understand
- Introduction to Library API
- Testing REST Assured for Library API Using the Add Book HTTP Method
- Sending Parameters to Payload Through Test
- Understanding TestNG Data Provider for Parameterization
- Example on Parameterization of API Tests with Multiple Datasets
- How to Handle with Static JSON Payloads
-
Chapter 7 : Real-World Example Automating Jira APIs
- How Jira API Works
- Cookie Authentication API for Jira Requests
- GET and POST APIs in Jira to Create Bugs
- Defining Path Parameters in REST Assured Code Using Add Comment API
- Importance of the Session Filter Cookie in REST Assured Code
- Sending Attachments to REST API Using the MultiPart Method in REST Assured
- Integrating Query Params and Path Params in a Single Test to Restrict the Results
- Parsing a Complex Jira JSON Response to Retrieve the Added Comment with Code Logic
- Importance of Assertions and HTTP Validations on REST API
- Chapter 8 : Handling Google and Facebook OAuth 2.0 Authorization Grant Types
- Chapter 9 : REST Assured Automation for OAuth 2.0 Authorization Code
-
Chapter 10 : Deserialization Using POJO Classes with REST Assured
- What is Serialization and Deserialization in REST Assured?
- Libraries Needed to Support Serialization in REST Assured
- Strategies in Parsing Complex Nested JSON using POJO Classes
- Creating POJO Classes for the Real-Time Nested Array in JSON
- End-to-End Automation Examples using POJO Deserialization
- Solving Complex Queries from JSON Using Simple POJO Methods -Part 1
- Solving Complex Queries from JSON Using Simple POJO Methods-Part 2
- Chapter 11 : Serialization of the Input Payload Using Google Maps API Example
- Chapter 12 : Understanding Request and Response Spec Builders in REST Assured
-
Chapter 13 : Maven and Cucumber Basics
- Importance of Maven in Framework Development
- Installing and Configuring Maven
- Understanding Terminologies of Maven
- Creating a Maven Project and Importing into Eclipse
- Introduction to Cucumber
- What is Gherkin Syntax and How it Works
- Understanding the Scenarios Outline in Cucumber
- Feature Files and Importance of Step Definition in Cucumber
- Creating a Project Template in Cucumber
- Understanding Cucumber Dependencies
- Understanding the Terminologies of Automation
- Mapping Step Definition to a Feature File
- Using Tidy Gherkin Plugin to Generate Step Definitions
- Running the Tests with testRunner
- Importance of Regular Expressions in Feature Files
- Reusing Functions with Different Data
-
Chapter 14 : Cucumber BDD API Framework Development from Scratch - 1
- Learning Plan
- Creating a Maven Project with Cucumber REST Assured Dependencies
- Building a Cucumber Feature File for REST Assured API Tests
- Building Test Runner and Step Definition Files to Test the Add Place API Feature
- Implementing Real Code in Step Definition Files with Reusable Components
- Running the Test in Cucumber Standards with Necessary Configuration Changes
- Building Utility Files and Implement a Logging Feature in the framework
- Implementing Mechanisms to Drive Global Property Values from the Properties File
- Data-Driven Testing Mechanism for API Tests using the Cucumber Example Feature
- Parameterizing API Test with Multiple Data Sets using Cucumber Framework Features
- What are Enum Classes? How the Framework can Utilize the Enum Concepts?
- Removing Hardcoded Resource Details with Enum Class Methods
- Building End-to-End Test Case with the Add and Delete Place in Framework Standards – Part 1
- Building End-to-End Test Case in Framework Standards – Part 2
- Creating Additional Scenarios in Framework to Reuse Existing Step Definitions
- Importance of Cucumber Hooks in Setting up Preconditions for API Tests
- Optimizing the Framework Tests with All Necessary Validations
- Running the Complete Framework Using Maven Commands
- Generating Excellent Cucumber HTML Reporting with Additional Plugins
- Chapter 15 : Cucumber BDD API Framework Development from Scratch - 2
-
Chapter 16 : Understanding the Git Version Control System
- Introduction to Git
- Importance of GitHub and its Uses
- Creating Git Config and Repositories
- How to Push Code to a Remote Repository
- Understanding Staging and Commit in Git
- Adding a Remote Repository and Pushing the Committed Code
- End-to-End Working Example on Git Commands – Part 1
- End-to-End Working Example on Git Commands – Part 2
- Importance of Branching in Git
- Resolving Merge Conflicts with Git
-
Chapter 17 : Excel Integration with REST Assured Test
- Apache POI API and Downloading Instructions
- Strategy to Access Excel Data
- Getting Rows and Cells from an Excel Sheet
- Retrieving Data from Excel Based on a Condition
- Practice Exercise - Excel Driven Testing – Part 1
- Practice Exercise- Excel Driven Testing – Part 2
- Practice Exercise- Excel Driven Testing – Part 3
- Introduction to Library API
- Library API Postman and REST Assured Examples
- Converting HashMap into JSON
- Testing Excel Integration with REST Assured
-
Chapter 18 : Java Basics
- Java Program Principles
- Classes and Objects in Java
- Strings in Java
- String Practice Exercises
- What is an interface?
- How Java Classes can Take Advantage of the Interface
- Using Inheritance in JAVA
- Practical Examples on Types of Inheritance
- Introduction to Arrays
- Single-Dimensional and Multidimensional Arrays Usage
Product information
- Title: REST API Automation Testing from Scratch - REST Assured Java
- Author(s):
- Release date: November 2020
- Publisher(s): Packt Publishing
- ISBN: 9781789133813
You might also like
video
REST API Automation With REST Assured - Zero To Hero
REST Assured is an essential API automation tool, widely used for automating RESTful APIs and web …
video
Master Java Web Services and REST API with Spring Boot
This video course offers a comprehensive overview of developing both SOAP and RESTful web services using …
video
Master Java Unit Testing with Spring Boot and Mockito
Spring Boot is the most popular framework to develop RESTful services. It has awesome unit testing …
video
Postman Tutorial: Getting Started with API Testing
Postman has become the go-to tool for API developers across various industries, playing a crucial role …