REST Assured API Testing: Using Hamcrest Matchers to Validate Responses
REST Assured
| Beginner
- 11 videos | 1h 21m 32s
- Includes Assessment
- Earns a Badge
Hamcrest is a framework for writing matcher objects, facilitating the creation of flexible and expressive tests in Java. REST Assured has first class support for Hamcrest matchers to validate headers and responses from APIs. In this course, you will explore the capabilities of the Java Hamcrest library, a powerful tool for asserting various data types, including numeric values, strings, collections, and arrays with precision and flexibility. Next, you will expand your testing repertoire by integrating Hamcrest with REST Assured for sophisticated API testing. Then you will learn to ensure API responses meet expected schemas and contents using Hamcrest matchers and lambda expressions. Finally, you will discover how to specify path parameters in your URLs, use unnamed and named parameters, and specify query parameters for filtering the response.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseUse hamcrest matchers with numeric valuesUse hamcrest matchers with stringsUse hamcrest matchers with collections and arraysUse hamcrest matchers with java objectsValidate response headers with hamcrest
-
Validate headers with flexible matchersSend requests with path and query paramsSend requests with named and unnamed parametersPerform testing with query parametersSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 57sIn this video, we will discover the key concepts covered in this course. FREE ACCESS
-
10m 38sFind out how to use Hamcrest matchers with numeric values. FREE ACCESS
-
4m 46sDuring this video, you will learn how to use Hamcrest matchers with strings. FREE ACCESS
-
7m 15sDiscover how to use Hamcrest matchers with collections and arrays. FREE ACCESS
-
6m 50sIn this video, find out how to use Hamcrest matchers with Java objects. FREE ACCESS
-
10m 52sLearn how to validate response headers with Hamcrest. FREE ACCESS
-
11m 52sDuring this video, discover how to validate headers with flexible matchers. FREE ACCESS
-
10m 52sIn this video, you will learn how to send requests with path and query params. FREE ACCESS
-
9m 30sFind out how to send requests with named and unnamed parameters. FREE ACCESS
-
4m 26sDiscover how to perform testing with query parameters. FREE ACCESS
-
2m 34sIn 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.