REST Assured 4: Fundamentals
Do you have Web API integration testing to do, but are unsure which technology to choose? Try REST Assured and never look back!
What you'll learn
Automated tests undeniably benefit software projects by protecting against bugs. Web APIs need integration testing and REST Assured is the perfect solution for it. In this course, REST Assured 4: Fundamentals, you will learn how to carry out Web API testing. First, you will learn the fundamental programming concepts, such as method chaining and Fluent Interface, that underpin REST Assured. This will help you use this framework and explore it on your own. Then, you will dive into hands-on coding – how to write a variety of HTTP requests, how to validate the headers and the body of each response, as well as how to set them on your requests. Finally, you will explore a variety of useful techniques that make your experience of working with the framework more pleasant. When you are finished with this course, you will have the skills to write your own test suite of automated tests for a Web API.
Table of contents
- Introduction 2m
- HTTP Header Groups 3m
- Peek and Print Methods 3m
- Demo: Asserting Basic Response 6m
- Demo: Working with Validatable Response 2m
- Adding Syntactic Sugar 2m
- Introducing Hamcrest 3m
- Leveraging Simple Hamcrest Matchers 2m
- Demo: Leveraging Simple Hamcrest Matchers 2m
- Leveraging Complex Hamcrest Matchers 2m
- Demo: Leveraging Complex Hamcrest Matchers 3m
- Using Maps to Test Headers 1m
- Module Summary 2m
- Introduction 2m
- Overview of HTTP Methods 2m
- Demo: Using HEAD and OPTIONS 2m
- REST Assured and BDD 2m
- Authentication Methods 1m
- Creating an Access Token 1m
- Demo: Creating with POST 2m
- Demo: Updating with PATCH 1m
- Demo: Deleting with DELETE 1m
- Organizing Your Tests 2m
- Other and Custom Methods 2m
- Module Wrap Up 1m
- Introduction 2m
- Setting Useful Global Variables 2m
- Demo: Overriding BaseUri 1m
- Overview of Complex Global Variables 1m
- Understanding the Config Object 2m
- Demo: Changing the Redirect Config 2m
- Demo: Creating a Failure Config 3m
- Demo: Creating a Central Configuration 3m
- Understanding RequestSpecification 1m
- Demo: RequestSpecification 2m
- Understanding ResponseSpecification 1m
- Demo: ResponseSpecification 2m
- Logging 1m
- Demo: Logging 2m
- Prefer Using Constants 2m
- Course Wrap Up 2m