Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 2.6 KB

README.md

File metadata and controls

45 lines (29 loc) · 2.6 KB

Web Automation Selenium WebDriver, Cucumber, and JUnit with Java - Framework

Sample project to demonstrate Web Automation tests written with Selenium WebDriver, Cucumber, and JUnit in Java running on GitHub Actions.

Pre-requirements

To clone and run this project, you will need:

  • Git(I've used version 2.34.1 while writing this doc)

  • Java 11(I've used version 11 while writing this doc)

  • Maven(I've used version 3.9.4 while writing this doc)

  • IntelliJ IDEA Community Edition (Install the IntelliJ IDEA Community Edition)

  • Cucumber for Java Extension Plugin(Install the plugin Cucumber for Java also will include the Gherkin plugin to accept both).

  • DISCLAIMER: make sure to set up the JAVA_HOME and MAVEN_HOME environments in your machine.

Project Structure: Page Object Model and Single Responsibility Principle Pattern:

Package Responsibility
core responsible for managing the Webdriver config
maps responsible for identifying web elements
pages responsible for page actions (navigation, sendKeys, getText, clicks, selects.)
steps responsible for snippets steps generated from feature file
runner responsible for executing the test suite
features responsible for Scenarios written in BDD/Gherkin

Installation

Install the Libraries using the Command Line:

  • mvn install

Running the tests

In this project, you can run tests via CLI using 'mvn' the flag '-Dcucumber.filter.tags=' with the Name Tag Runner '@regressivo' and generate the reports with the 'cluecumber-report:reporting'

mvn test -Dcucumber.filter.tags="@regressivo" cluecumber-report:reporting


Made with ❤️ by Jardeson Santos. Meu Linkedin.