Mastering API Testing with Cypress
summary
Uses the ministry of testing hotel booking API and the cyp-plugin api to run real GET and POST calls, shows GET /bookings returning status 200 and GET /bookings/:id asserting firstName "Eric" and booking dates, posts a JSON payload and verifies creation by receiving a bookingId, builds a reusable JS module with getBookings/getBookingById/postBooking that accepts payload params, demonstrates exporting responses to PDF, and recommends AJV-style schema validation and token methods for CI-integrated API test suites.
AI-written summary · about
chapters (10)
- 0:00Introduction to API testing
- 1:26Setting up Cypress API plugin
- 3:04Making GET requests for bookings
- 6:47Verifying API responses
- 9:03Validating response body data
- 13:19Creating bookings with POST requests
- 20:41Building reusable API methods
- 26:33Using reusable methods in tests
- 30:19Exporting test results
- 32:10Q&A session begins
related talks
46mCypress in practice — overview of the most important capabilities
35mCypress Tales: Effective E2E Testing
42mStrategy for Automation Testing Using Cypress.io
20mIntegration Testing with Cypress
44mAutomation Testing Web Apps with Cypress
32mCypress.io – the State of the Art End-to-end Testing Tool
23mGaining Confidence with Cypress Tests
23mGaining Confidence with Cypress Tests
