Skip to content

cannem/playwright-java-test-automation-architecture

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright Java Test Automation Architecture

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

Installation Steps

In order to use the framework:

  1. Fork the repository.
  2. Clone, i.e, download your copy of the repository to your local machine using
git clone https://github.com/[your_username]/playwright-java-test-automation-architecture.git
  1. Import the project in IntelliJ IDEA.
  2. Make your desired changes.
  3. Use IntelliJ IDEA to run your desired tests. Alternatively, you can use the terminal to run the tests, for example ./gradlew test -Dbrowser=firefox -Dheadless=false to run all the tests using the firefox browser in headed mode.
  4. Build and browse the allure report using
./gradlew allureServe

Languages and Frameworks

The project uses the following:

Project Structure

The project is structured as follows:

📦 playwright-java-test-automation-architecture
├─ .github
│  └─ workflows
│     └─ test-execution.yml
├─ .gitignore
├─ LICENSE
├─ README.md
├─ build.gradle
├─ gradle
│  └─ wrapper
│     ├─ gradle-wrapper.jar
│     └─ gradle-wrapper.properties
├─ gradlew
├─ gradlew.bat
├─ settings.gradle
└─ src
   ├─ main
   │  └─ java
   │     └─ io
   │        └─ github
   │           └─ tahanima
   │              ├─ config
   │              │  ├─ Configuration.java
   │              │  └─ ConfigurationManager.java
   │              ├─ data
   │              │  ├─ BaseTestData.java
   │              │  └─ login
   │              │     └─ LoginTestData.java
   │              ├─ page
   │              │  ├─ BasePage.java
   │              │  ├─ BasePageFactory.java
   │              │  ├─ login
   │              │  │  └─ LoginPage.java
   │              │  └─ product
   │              │     └─ ProductsPage.java
   │              └─ util
   │                 ├─ BrowserFactory.java
   │                 └─ BrowserManager.java
   └─ test
      ├─ java
      │  └─ io
      │     └─ github
      │        └─ tahanima
      │           ├─ e2e
      │           │  ├─ BaseE2ETest.java
      │           │  └─ login
      │           │     └─ LoginE2ETest.java
      │           └─ util
      │              ├─ CsvToPOJOMapper.java
      │              ├─ DataArgumentsProvider.java
      │              └─ DataSource.java
      └─ resources
         ├─ allure.properties
         ├─ general.properties
         ├─ junit-platform.properties
         └─ testdata
            └─ login
               └─ login.csv

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%