Java: Automated API Testing with REST Assured (2021)
1h 17mIntermediate2021-04-26
Authors

Angie Jones
Java Champion, Senior Director, and Master Inventor
Course details
There is demand for engineers who know how to automate API testing. In this course, instructor Angie Jones covers how to use REST Assured to make various types of API requests in Java, with and without additional data, and how to verify the response received from the API. Angie explains why API testing is necessary and why automating API testing is an efficient and effective approach to keeping your APIs healthy. She introduces you to the REST Assured testing library. Angie discusses the anatomy of an API request, then shows you how to make GET, POST, PUT, and DELETE requests. She describes how you can serialize data to send as part of the request. Angie explains how you can validate API responses and deserialize data received from the response.
Skills covered
APIsJavaFull-Stack Web DevelopmentOracleWeb DevelopmentProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Gain fast feedback with automated API testing
- 02 - Get the most out of this course
- 03 - API setup
1. Getting Started with REST Assured
- 04 - The challenge with API testing
- 05 - REST Assured testing library
2. Making API Requests
- 06 - Anatomy of a request
- 07 - Request methods
- 08 - Making a GET request
- 09 - Making a POST request
- 10 - Making a PUT request
- 11 - Making a DELETE request
- 12 - Serializing request body
- 13 - Challenge - Use requests to complete the lifecycle of a resource
- 14 - Solution - Use requests to complete the lifecycle of a resource
3. Validating API Responses
- 15 - Anatomy of a response
- 16 - Verifying status code of a response
- 17 - Accessing response body
- 18 - Verifying fields of response
- 19 - Verifying complex response bodies
- 20 - Verifying response header
- 21 - Deserializing response body
- 22 - Challenge - Verify API response
- 23 - Solution - Verify API response