Skip to content

UI testing project example with Cucumber + Selenium (Page Factory) + Spring Boot

License

Notifications You must be signed in to change notification settings

ChristianAA/selenium-springboot-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

UI testing project example with Cucumber + Selenium (Page Factory) + Spring Boot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published