REST Assured Fundamentals

Video description

Join our comprehensive REST Assured course, a guided journey into the essentials of REST API testing. Begin with software setup and real-world applications such as the Video Game Database and Football Data API. Create an IntelliJ project, install REST Assured, and dive into practical exercises.

Learn REST Assured fundamentals, from base class setup to request and response specifications, and configuring files. The course covers object serialization, validation against XML and JSON schemas, and response time measurement. Delve into GPath for JSON, starting with basic find operations. Additionally, you will become skilled at extracting data from responses, including headers and explicit data using JSON path. Explore advanced features such as ‘findAll' for extracting multiple data points, and apply functions such as ‘Min', ‘Max', ‘Collect', and ‘Sum'. Combine finds with parameters for precision.

For XML data, master GPath mirroring, including attributes, node extraction, depth-first searches, and node filtering based on conditions. By the end of the course, you will possess a profound understanding of REST Assured and its advanced capabilities.

What you will learn

  • Explore request and response specs
  • Learn to create API test base class
  • Understand how to measure response time
  • Learn how to handle all HTTP verbs
  • Explore advanced Groovy GPATH assertions
  • Understand the validation of XML and JSON schemas

Audience

This course is designed for those seeking a swift and efficient grasp of REST Assured’s fundamental features. While no prerequisites are necessary, having some basic knowledge of Java can enhance your learning experience. Familiarity with API concepts is beneficial but not essential. This course accommodates learners with minimal Java and API testing background.

About the Author

James Willett: James is a renowned principal engineer, boasting an illustrious 15-year career in the software industry, specializing in automation and performance testing. With a profound passion for teaching, particularly through online tutorials, James is committed to leveraging his extensive technical expertise to enrich the educational landscape.

Table of contents

  1. Chapter 1 : Prerequisite Installations and Setup
    1. Course Introduction
    2. Prerequisite Software
    3. Target Application 1 - Video Game DB
    4. Target Application 2 - Football Data API
  2. Chapter 2 : REST Assured - Preparing Your Framework
    1. Create Intellij Project and Install REST Assured
    2. Write Your First REST Assured Test
    3. Setting Up a Base Class
    4. Request Specification
    5. Response Specification
    6. Create Config File for Video Game DB
    7. Adding Endpoints to an Interface
  3. Chapter 3 : REST Assured - Different Request Types
    1. GET Request
    2. POST Request with JSON
    3. POST Request with XML
    4. PUT Request
    5. DELETE Request
    6. Path Parameters
    7. Create Config File for Football API
    8. Query Parameters
  4. Chapter 4 : REST Assured - Assert and Extract from the Response Body
    1. Assert the Body of a HTTP Response
    2. Extract the Body of a HTTP Response
    3. Extract the Headers of a HTTP Response
    4. Extract Explicit Data from the Body with JSON Path
  5. Chapter 5 : REST Assured - Serialization, Schema Validation, and Measuring Response Time
    1. Object Serialization
    2. Validating Response Against a XML Schema
    3. Validating Response Against a JSON Schema
    4. Convert JSON Response to POJO
    5. Measuring Response Time in REST Assured
  6. Chapter 6 : Using Groovy GPath for JSON in REST Assured
    1. GPath JSON Part 1 - Setup and Basic Find
    2. GPath JSON Part 2 - Using findAll to Extract Multiple Data
    3. GPath JSON Part 3 - Using Min, Max, Collect, and Sum
    4. GPath JSON Part 4 - Combining Finds and Using Parameters
  7. Chapter 7 : Using Groovy GPath for XML in REST Assured
    1. GPath XML Part 1 - Setup and Basic Find
    2. GPath XML Part 2 - Attributes
    3. GPath XML Part 3 - Extract all XML Nodes with findAll
    4. GPath XML Part 4 - Extract XML Nodes with an Attribute
    5. GPath XML Part 5 - Extract Single Node
    6. GPath XML Part 6 - Depth First Search
    7. GPath XML Part 7 - Get All Nodes Based on a Condition
  8. Chapter 8 : Conclusion
    1. Thanks for Watching!

Product information

  • Title: REST Assured Fundamentals
  • Author(s): James Willett
  • Release date: November 2023
  • Publisher(s): Packt Publishing
  • ISBN: 9781835466919