REST Assured API Testing: Validating JSON Responses & Schemas

REST Assured    |    Beginner
  • 14 videos | 1h 48m 21s
  • Includes Assessment
  • Earns a Badge
JSON response validation checks the response data to see whether it matches expectations. Schema validation against a JSON response involves comparing the actual application programming interface (API) response to a predefined JSON schema. This process helps identify mismatches, missing fields, or data type errors in the API response, ensuring that the API behaves correctly under various conditions and conforms to its specification. Begin this course by learning how to validate JSON responses and schemas using REST Assured and how to navigate JSON responses with JSONPath, accessing and validating nested structures and collections. Next, you will uncover the pivotal role of JSON schemas in API testing, generating and applying JSON schemas to define and validate the expected structure of API responses. Then you will explore validating response types and properties, ensuring adherence to required fields, and employing schema dialects to refine your validation strategies based on the schema documentation. Finally, you will investigate advanced validation techniques, including validating nested JSON objects and arrays and validating XML responses.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Load and validate a response body with jsonpath
    Load and validate nested fields in json
    Load and validate collections with jsonpath
    Use response-aware matchers to extract values
    Generate a json schema
    Validate a json schema
  • Recall json schema dialects
    Compare a schema to a response body
    Specify required and optional properties
    Specify range constraints in a schema
    Validate nested fields and json arrays
    Handle and validate xml responses
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 2s
    In this video, we will discover the key concepts covered in this course. FREE ACCESS
  • 11m 13s
    During this video, you will learn how to load and validate a response body with JSONPath. FREE ACCESS
  • Locked
    3.  Validating JSON Response with Nested Structures
    10m 59s
    In this video, find out how to load and validate nested fields in JSON. FREE ACCESS
  • Locked
    4.  Validating Collections in the JSON Response
    13m 2s
    Discover how to load and validate collections with JsonPath. FREE ACCESS
  • Locked
    5.  Extracting Values from Responses
    6m 57s
    Find out how to use response-aware matchers to extract values. FREE ACCESS
  • Locked
    6.  Generating JSON Schema for Validation
    8m 43s
    In this video, you will learn how to generate a JSON schema. FREE ACCESS
  • Locked
    7.  Validating JSON Schema
    5m 32s
    During this video, discover how to validate a JSON schema. FREE ACCESS
  • Locked
    8.  Using JSON Schema Dialects
    11m 2s
    After completing this video, you will be able to recall JSON schema dialects. FREE ACCESS
  • Locked
    9.  Validating Response Type and Response Properties
    8m 36s
    In this video, we will compare a schema to a response body. FREE ACCESS
  • Locked
    10.  Configuring Required Properties and Additional Properties
    5m 20s
    In this video, discover how to specify required and optional properties. FREE ACCESS
  • Locked
    11.  Specifying Range Constraints for Response Values
    6m 52s
    Find out how to specify range constraints in a schema. FREE ACCESS
  • Locked
    12.  Validating Nested JSON Fields and JSON Arrays
    7m 40s
    During this video, you will learn how to validate nested fields and JSON arrays. FREE ACCESS
  • Locked
    13.  Validating XML Responses
    8m 15s
    Discover how to handle and validate XML responses. FREE ACCESS
  • Locked
    14.  Course Summary
    2m 8s
    In this video, we will summarize the key concepts covered in this course. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.