Skip to content

Files

Latest commit

 

History

History
46 lines (25 loc) · 1.27 KB

README.md

File metadata and controls

46 lines (25 loc) · 1.27 KB

Cucumber + Selenium + Spring Boot example

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

Requirements

  • JDK 18
  • Maven 3.8.6

Test Execution

  1. Download or clone the repository
  2. Open a terminal
  3. From the project root directory run: mvn clean test

Configuration

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

Results

To check the report, open the '/results/cucumber-reports.html' file once the execution has finished.

Links

Cucumber

Gherkin

Selenium

Page Object & Page Factory

Spring Boot

WebDriverManager