Challenge: Testing Endpoints with Postman
Explore how to test profile and logout endpoints in a React application using Postman. Learn to write effective test cases, run them sequentially, and use environment variables to manage base URLs for flexible testing across different environments.
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 ...