~/talk

Mastering API Testing with Cypress

Talkat CypressConf 2024 · 2024-10-22..10-23· [testing, api-design]
slides:none on file

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

  1. 0:00Introduction to API testing
  2. 1:26Setting up Cypress API plugin
  3. 3:04Making GET requests for bookings
  4. 6:47Verifying API responses
  5. 9:03Validating response body data
  6. 13:19Creating bookings with POST requests
  7. 20:41Building reusable API methods
  8. 26:33Using reusable methods in tests
  9. 30:19Exporting test results
  10. 32:10Q&A session begins
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.