Title: Write another simple GET check!
Time: 10-30 minutes
Purpose: To practice our skills at writing checks similar to the one we’ve already written (a simple GET check).
Introduction:
At the end of Lesson 6 I challenged you to write another simple GET check to practice our new skills.
Activity:
- Choose a scenario to automate
- It can be a scenario from our priority list, or you can make one up
- It should be simple, and for a GET method
- Some examples:
- Check that a GET of a single todo item that exists returns a 200 OK (hint: you’ll need to change the URL the client uses)
- Check that a GET of a single todo item that doesn’t exist (id of 100000 maybe) returns a 404 Not Found (hint: you’ll need to change the URL the client uses)
- Check that a GET of a single todo item with an id of ‘abcd’ returns ??? (you’ll need to try that out in the Swagger - does the response code make sense?)
- Write your check, and verify that it passes
- Share on this thread:
- What scenario did you try?
- Are you stuck anywhere?
- Did you learn anything new about our API?