Sample project to demonstrate Web Automation tests written with Selenium WebDriver, Cucumber, and JUnit in Java running on GitHub Actions.
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.
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 |
Install the Libraries using the Command Line:
mvn install
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.