Frontend and API Testing Using Cypress and Postman
During a recent Postman livestream with the senior director of engineering at Mercari, Dr. Gleb Bahmutov, PhD, we wrote frontend and API tests using Cypress and Postman, and then we ran them as part of a continuous integration pipeline in CircleCI.
Previously the VP of engineering at Cypress, Gleb is now one of the foremost instructors on Cypress technology and has strong opinions about the importance of testing in a modern software development team.
“If you’re a developer, and you don’t identify as a tester as well, you’re not a real developer.”
— Dr. Gleb Bahmutov, PhD, senior director of engineering at Mercari
Watch what happened and hear straight from Gleb in this full video:
Check out a few highlights
- Use Interceptor to proxy network calls from browser to Postman
- Write scenario API tests in Postman
- Use Cypress iframe command log to suggest user actions to replicate
- Configure CircleCI continuous integration pipeline to run our tests
Follow along at home with these resources
- Fork the example application code from GitHub
- Fork the example API tests from Postman
- Use the Newman orb from CircleCI docs
- Use the Cypress orb from CircleCI docs
Don’t miss upcoming streams
Postman currently streams every week on Thursdays. Stop by and say hi, y’all. Follow or subscribe on any of these platforms so you never miss hearing about streams like this one:
- YouTube: Subscribe to Postman on YouTube and turn on your notifications
- Twitch: Follow Postman on Twitch to receive notifications when we go live
- Twitter: Follow Postman on Twitter to see when we go live
- LinkedIn: Follow Postman on LinkedIn to be notified of upcoming events
What do you think about this topic? Tell us in a comment below.