From the course: Java: Automated API Testing with REST Assured
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Verify API response - Java Tutorial
From the course: Java: Automated API Testing with REST Assured
Challenge: Verify API response
(lively electronic music) - [Narrator] Now, it's time to practice verifying API responses. Your challenge is to make an API request to get the multivitamin product. This product has an ID of 18. Verify the response's status code, content-type header, and each field of the body. After completing your solution, check out the next video to see how I solved it. Good luck.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Anatomy of a response2m 1s
-
(Locked)
Verifying status code of a response2m 20s
-
(Locked)
Accessing response body1m 35s
-
(Locked)
Verifying fields of response5m 50s
-
(Locked)
Verifying complex response bodies7m 37s
-
(Locked)
Verifying response header2m 52s
-
(Locked)
Deserializing response body7m 54s
-
(Locked)
Challenge: Verify API response33s
-
(Locked)
Solution: Verify API response1m 55s
-
(Locked)