Skip to content

Playwright API automation framework that validates real backend behavior

Notifications You must be signed in to change notification settings

malkiqmuki/playwright-api-testing

Repository files navigation

Playwright API Testing Project

This repository contains an API automation testing framework built with Playwright and TypeScript, focused on validating a real public REST API.

The project demonstrates how to design, structure, and run reliable API tests with proper assertions, negative scenarios, and CI integration.


🚀 Tech Stack

  • Playwright – API testing framework
  • TypeScript – type-safe test development
  • Node.js
  • GitHub Actions – CI pipeline

🧪 API Under Test

Fake Store API
Base URL: https://fakestoreapi.com

This is a public API that simulates e-commerce backend functionality, making it suitable for realistic API testing scenarios.


✅ What This Project Demonstrates

  • API automation using Playwright’s request context
  • Validation of HTTP status codes
  • Response body assertions
  • Positive and negative test scenarios
  • Handling public API limitations (rate limiting / access restrictions)
  • CI pipeline using GitHub Actions
  • Clean and maintainable test structure

🤖 Continuous Integration

-Tests run automatically on every push and pull request -Implemented using GitHub Actions -CI status is visible via the badge at the top of the repository


🎯 Why Playwright for API Testing?

-Built-in API request context -Unified tool for UI + API testing -Fast execution -First-class TypeScript support -Easy CI integration

About

Playwright API automation framework that validates real backend behavior

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published