pw·handbook
Levels Domain Projects Capstones Search GitHub
level 05 / api-testing

API Testing

REST, GraphQL, auth flows, contract testing, and hybrid UI+API end-to-end flows.

REST API Testing with Playwright

Use Playwright's request fixture to test REST APIs directly — no browser required.

35 min practice: Restful Booker

GraphQL & SOAP Testing

Test GraphQL queries and SOAP endpoints using Playwright's request fixture.

30 min practice: Countries GraphQL API

API Auth: Headers, JWT, OAuth2

Authenticate API test requests using headers, Bearer tokens, JWT, and OAuth2 flows.

35 min

Contract Testing & Schema Validation

Validate API response shapes with JSON Schema and understand consumer-driven contract testing.

30 min

API Mocking & Chaining

Mock network responses in browser tests and chain API calls to build dependent test data.

30 min

Hybrid UI + API Flows

Combine API calls with browser actions to build efficient, stable end-to-end test flows.

35 min
pw·handbook — production-grade Playwright engineering, level by level.
Home · Playwright Docs · MIT License