Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex-kapranchuk/api-playwright-example
The example how to create tests with playwright api and use simple patterns
https://github.com/alex-kapranchuk/api-playwright-example
api-rest gradle playwright playwright-api
Last synced: 26 days ago
JSON representation
The example how to create tests with playwright api and use simple patterns
- Host: GitHub
- URL: https://github.com/alex-kapranchuk/api-playwright-example
- Owner: alex-kapranchuk
- Created: 2024-05-17T15:24:06.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-05-19T14:01:34.000Z (9 months ago)
- Last Synced: 2024-11-10T03:29:44.445Z (3 months ago)
- Topics: api-rest, gradle, playwright, playwright-api
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Overview
This project utilizes a set of classes and patterns to ensure modular, maintainable, and testable code. Below is an overview of the main components and their roles.
## Components
### PlaywrightSingleton
Provides a single Playwright instance for all tests.### PostFactory
Used to create data for queries.### ApiCommand
An interface for implementing the Command pattern, which makes the code more modular and understandable.### ApiClient
Initialized using Singleton for Playwright.### ApiAssertions
A class for validating API responses.### ApiTest
Uses a PlaywrightSingleton to initialize a Playwright and passes it to the ApiClient.