Skip to content

LambdaTest-Learning/playwright-test-automation-boilerplate

 
 

Repository files navigation

Playwright Test Automation Boilerplate

Ready-to-use UI Test Automation Architecture using Java and Playwright.

Languages and Frameworks

The project uses the following:

Project Architecture

Config

The project uses general.properties file to map all the global parameters such as browser and base url. All the relevant classes to read the parameters are provided in the config package.

Data

The project reads test data from csv files. The test data properties are modeled in terms of entities and the data package handles this. For convenience, there is an example class - LoginData.java to demonstrate the usage.

Page

The project uses Page Object Model to capture all the relevant UI components and functionalities of a web page. The page package provides all the classes to achieve this. For convenience, there is an example class - LoginPage.java to demonstrate the usage.

Report

The project uses Extent Reports to provide test reporting functionalities. The report package contains the relevant class.

Test

LoginTest.java demonstrates an example test script.

Workflow

The project uses GitHub Actions to run the playwright tests when an update is made to the main branch of the repo in GitHub.

About

Ready-to-use UI Test Automation Architecture using Java and Playwright.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.0%
  • Shell 1.0%