Giter Club home page Giter Club logo

playwrightcucumberjavaproject's Introduction

Playwright Cucumber Tests

This repository contains automated tests for your project using Playwright and Cucumber. The tests are written in Java 17 and managed by Gradle 8.4.

Tech Stack

  • Java 17: The programming language used for writing the tests.
  • Gradle 8.4: The build automation tool used for managing the project and running the tests.
  • Playwright 1.40 with Chrome 120.0

Getting Started

Follow these instructions to set up and run the tests.

Clone the Repository

git clone https://github.com/yurydiahiliev/PlaywrightCucumberJavaProject.git
cd PlaywrightCucumberJavaProject

Running Tests Locally

To run the tests locally, use the following Gradle command for running Gradle task:

./gradlew cucumber

Running Tests in Parallel Locally

If you want to run tests in parallel locally, use the following command with the -Dparallel=true flag:

./gradlew cucumber -Dparallel=true

Github Actions

The tests are automatically executed using GitHub Actions. The workflow configuration is available in .github/workflows/gradle

Pre-setup Github Actions (for Allure report generation)

  • Go to Profile -> Settings -> Developer Settings -> Personal access tokens -> Tokens (classic)
  • Generate token with name GITHUB_TOKEN
  • Go to Repository -> Settings -> Actions -> General
  • In "Workflow permissions" section choose option "Read and write permissions" -> Save
  • Go to Repository -> Settings -> Pages
  • In "Build and deployment" section choose "Source" option "Deploy from a branch"
  • Create branch "gh-pages" if not exists
  • Select this branch with "/(root)" -> Save

Github Actions is ready for deploying Allure report after test phase execution

Selenium Grid 4

For running tests inside Selenium Grid, should be run docker-compose file for Apple Silicon (M1 - M3) in the project root before

To set up and tear down Selenium Grid use the following commands

docker-compose up -d
docker-compose down

To run tests

SELENIUM_REMOTE_URL=http://localhost:4444 ./gradlew clean cucumber -Dparallel=true

playwrightcucumberjavaproject's People

Contributors

yurydiahiliev avatar

Stargazers

Oleksandr Ishchenko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.