This repository contains the base setup of an UI testing project, using Cucumber + Selenium (Page Factory Model) + Spring Boot
A simple search in DuckDuckGo to check that results are displayed is used as example
- JDK 18
- Maven 3.8.6
- Download or clone the repository
- Open a terminal
- From the project root directory run:
mvn clean test
By default, tests will be executed in Chrome (headless mode).
Preferences can be changed in "application.properties" file
This values can also be defined from the command line when launching the tests without the need of modify the properties file.
mvn clean test -Dselenium.browser.headless=false
To check the report, open the '/results/cucumber-reports.html' file once the execution has finished.