Challenge: Testing Endpoints with Postman
Challenge yourself by writing tests to complete the flow from login to logout.
Challenge overview
In previous lessons, we wrote tests for the sign-up and login endpoints. However, there are two remaining endpoints that we can use to create Postman requests and write tests—the profile and logout endpoints. The remaining requests allow us to test the end-to-end flow from creating a new account, logging in, and logging out.
Challenge instructions
Your task is to import the provided challenge.json
collection and write Postman test cases for the profile and logout endpoints. The collection structure should look similar to the image below once imported:
Get hands-on with 1400+ tech skills courses.