Black box API testing with server logs

1 · Gleb Bahmutov · July 19, 2019, 2:21 p.m.
In my previous blog post "Add GUI to your E2E API tests" I have used cy.request command to execute HTTP requests against a backend performing a black box API testing. In this blog post I will show a new custom command cy.api that can take such API testing to the next level. In addition to the new user interface for your API requests, if you capture all server logs using @bahmutov/all-logs, then the API tests will capture those messages too, allowing you deep insight into what is happening on eac...