Skip to content

Automação End-To-End com Selenium Webdriver, Cucumber em Java, utlizando o padrão page objects model e geração de relatórios com Cluecumber Reports

Notifications You must be signed in to change notification settings

JarDeVSon/MeuFrameworkWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Automação End-To-End com Selenium Webdriver, Cucumber em Java, utlizando o padrão page objects model e geração de relatórios com Cluecumber Reports

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published