Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn API testing fundamentals using Playwright Python in this 21-minute tutorial that demonstrates how to send HTTP requests and verify responses. Discover what API testing involves, including sending GET, POST, PUT, and DELETE requests to application backends while validating status codes, response bodies, and headers. Follow along with a hands-on demonstration that covers creating your first API test file, writing test code to send GET requests to a sample API endpoint, and running tests using pytest. Master essential techniques for handling request headers both inline and through context configuration, asserting response status codes and JSON data validation, and implementing proper test cleanup with request disposal. Gain practical experience testing real API endpoints while learning best practices for API test automation using Playwright's request context functionality.
Syllabus
Playwright Python 8 | 1st API Test
Taught by
Automation Step by Step