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 courseLoad and validate a response body with jsonpathLoad and validate nested fields in jsonLoad and validate collections with jsonpathUse response-aware matchers to extract valuesGenerate a json schemaValidate a json schema
-
Recall json schema dialectsCompare a schema to a response bodySpecify required and optional propertiesSpecify range constraints in a schemaValidate nested fields and json arraysHandle and validate xml responsesSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 2sIn this video, we will discover the key concepts covered in this course. FREE ACCESS
-
11m 13sDuring this video, you will learn how to load and validate a response body with JSONPath. FREE ACCESS
-
10m 59sIn this video, find out how to load and validate nested fields in JSON. FREE ACCESS
-
13m 2sDiscover how to load and validate collections with JsonPath. FREE ACCESS
-
6m 57sFind out how to use response-aware matchers to extract values. FREE ACCESS
-
8m 43sIn this video, you will learn how to generate a JSON schema. FREE ACCESS
-
5m 32sDuring this video, discover how to validate a JSON schema. FREE ACCESS
-
11m 2sAfter completing this video, you will be able to recall JSON schema dialects. FREE ACCESS
-
8m 36sIn this video, we will compare a schema to a response body. FREE ACCESS
-
5m 20sIn this video, discover how to specify required and optional properties. FREE ACCESS
-
6m 52sFind out how to specify range constraints in a schema. FREE ACCESS
-
7m 40sDuring this video, you will learn how to validate nested fields and JSON arrays. FREE ACCESS
-
8m 15sDiscover how to handle and validate XML responses. FREE ACCESS
-
2m 8sIn 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.