Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Playwright Python - First API Test - Part 8

Automation Step by Step via YouTube

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

Reviews

Start your review of Playwright Python - First API Test - Part 8

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.