Skip to content

jaktestowac/playwright-api-request-object

Repository files navigation

Playwright Webinar: LEVEL UP! Architecture and AI in API Testing with Playwright

This repository contains code used during Webinar organized by jaktestowac.pl: Playwright Webinar: LEVEL UP! Architecture and AI in API Testing with Playwright

that demonstrate the evolution of API testing architecture using Playwright, focusing on advanced patterns and AI integration.

To see more details about the webinar, please visit our website: jaktestowac.pl by jaktestowac.pl team.

Who we are?

We are Test Architects and Senior Lead Tech Quality Engineers, who are passionate about testing. We are constantly looking for new ways to improve our skills and share our knowledge with others.

We are actively involved in the Playwright community, contributing to the project and sharing our knowledge with others. We have been using Playwright in different companies and projects since 2021.

We believe in the power of open source and the importance of giving back to the community.

Read more about our Contribution to Playwright and Community

🛠️ Technical Stack

Component Technology Version Purpose
Testing Framework Playwright ^1.50.0 E2E test automation
Language TypeScript Latest Type safety & IntelliSense
Runtime Node.js v20+ LTS JavaScript runtime
Package Manager npm Latest Dependency management

🏃‍♂️ Quick Start

Prerequisites

Ensure you have the following installed:

  • Node.js (v20 or later LTS version)
  • VSCode IDE for optimal development experience
  • Our practice application - 🦎 GAD (optional)

Installation & Setup

  1. Clone the repository

    git clone https://github.com/jaktestowac/playwright-api-request-object-webinar.git
    cd playwright-api-request-object-webinar
  2. Install dependencies

    npm install
  3. Install Playwright browsers

    npx playwright install
  4. Start the GAD application (required for tests)

    Download and run the 🦎 GAD application on http://localhost:3000

Project Structure & Learning Path

This repository follows a progressive learning approach with numbered folders representing different architectural patterns:

  • 00_web_1_api/ - Basic API tests with Playwright request object
  • 01_extracting_commons/ - Extracting common variables and page objects
  • 02-05_*_request_object/ - Simple request object patterns (GET/POST)
  • 06-11_*_login_ro/ - Advanced request objects with authentication
  • 12-15_fixture_* - Fixture-based architecture with session management

Running Tests

cd 00_web_1_api
# Run all tests in the current folder
npx playwright test

# Run tests in headed mode
npx playwright test --headed

# Run tests with UI mode
npx playwright test --ui

# Generate HTML report
npx playwright show-report

📖 Resources & Learning Materials

🦎 Practice Application

🇵🇱 Polish Resources

🇬🇧 English Resources

Contact

Feel free to reach out to us:


Happy testing and automating tests! 🚀

jaktestowac.pl Team 💚❤️

PS. For more resources and updates, follow us on our website and GitHub.

⭐ Star this repository if you found it helpful and want to support our work!

🔄 Share with your team to help spread knowledge about advanced Playwright testing patterns!


Built with 💚❤️ for the Playwright and testing automation community

About

This repository contains code used during webinar LEVEL UP! Architecture and AI in API Testing with Playwright

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published