REST Assured Configuration: Error Handling & Fault Injection in API Tests

REST Assured    |    Intermediate
  • 11 videos | 1h 29m 7s
  • Includes Assessment
  • Earns a Badge
Transient errors and fault injection are crucial concepts in enhancing software resilience, particularly in distributed and cloud-based systems where network unreliability can introduce sporadic failures. In this course, you will focus on enhancing your application programming interface (API) testing skills with Java RestAssured, starting with the core aspect of request and response logging. You will learn how detailed logging is essential for understanding the interactions between your tests and APIs, aiding in debugging and ensuring API behavior aligns with expectations. Next, you will tackle the challenges posed by transient errors in API testing, learning strategies for retrying test cases to enhance the reliability and stability of your test suite. Then you will explore solutions like custom retry logic and the use of libraries like Awaitility for handling asynchronous operations more elegantly. Finally, you will investigate advanced testing techniques using the Envoy Proxy for fault injection, enabling you to simulate various failure conditions and assess an API's robustness and error-handling capabilities.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Describe error handling and fault injection
    Log data related to requests
    Log data related to responses
    Describe how transient errors work
    Retry tests with custom code
  • Handle transient errors with awaitility
    Set up the envoy proxy server for fault injection
    Make requests to the envoy proxy server
    Perform fault injection with the envoy proxy server
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 8s
    In this video, we will discover the key concepts covered in this course. FREE ACCESS
  • 5m 39s
    After completing this video, you will be able to describe error handling and fault injection. FREE ACCESS
  • Locked
    3.  Logging Requests
    8m 10s
    Find out how to log data related to requests. FREE ACCESS
  • Locked
    4.  Logging Responses
    12m 33s
    During this video, discover how to log data related to responses. FREE ACCESS
  • Locked
    5.  Mimicking Flaky Tests
    9m 17s
    Upon completion of this video, you will be able to describe how transient errors work. FREE ACCESS
  • Locked
    6.  Retrying Test Cases with Custom Code
    10m 1s
    In this video, find out how to retry tests with custom code. FREE ACCESS
  • Locked
    7.  Retrying Tests Using Awaitility
    8m 44s
    Discover how to handle transient errors with Awaitility. FREE ACCESS
  • Locked
    8.  Using the Envoy Proxy for Fault Injection
    10m 18s
    During this video, you will learn how to set up the Envoy proxy server for fault injection. FREE ACCESS
  • Locked
    9.  Making Requests to the Envoy Proxy Server
    10m 28s
    In this video, discover how to make requests to the Envoy proxy server. FREE ACCESS
  • Locked
    10.  Performing Fault Injection
    9m 21s
    Find out how to perform fault injection with the Envoy proxy server. FREE ACCESS
  • Locked
    11.  Course Summary
    2m 30s
    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.