Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goto-eof/andre-i-test-selenium-cucumber-spring-boot-jpa-hibernate-postgresql-hybrid
About POC for automated tests: Selenium, Cucumber and Spring Boot (single/multi-thread)
https://github.com/goto-eof/andre-i-test-selenium-cucumber-spring-boot-jpa-hibernate-postgresql-hybrid
cucumber hibernate java postgresql selenium spring-boot spring-jpa springboot springjpa testng
Last synced: 4 months ago
JSON representation
About POC for automated tests: Selenium, Cucumber and Spring Boot (single/multi-thread)
- Host: GitHub
- URL: https://github.com/goto-eof/andre-i-test-selenium-cucumber-spring-boot-jpa-hibernate-postgresql-hybrid
- Owner: goto-eof
- Created: 2024-08-10T23:41:35.000Z (6 months ago)
- Default Branch: develop
- Last Pushed: 2024-08-29T05:59:20.000Z (5 months ago)
- Last Synced: 2024-09-28T11:24:31.910Z (4 months ago)
- Topics: cucumber, hibernate, java, postgresql, selenium, spring-boot, spring-jpa, springboot, springjpa, testng
- Language: Java
- Homepage:
- Size: 20.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# POC: Cucumber + Selenium + TestNG + Spring Boot + Spring JPA + Hibernate + Postgresql (sequential and parallel testing)
POC implemented with the latest versions of Cucumber + Selenium + TestNG + Spring Boot + Spring JPA + Hibernate +
JDK (21) - sequential and parallel testing. It allows to make automated tests for a web application (in this case the
target is my portfolio https://andre-i.eu). See also
the [single-thread](https://github.com/goto-eof/andre-i-test-selenium-cucumber-spring-boot-single-thread)
and [multi-thread](https://github.com/goto-eof/andre-i-test-selenium-cucumber-spring-boot-multi-thread) versions.# Configuration
Run docker container from `docker` directory. This is the test DBMS. It should be used also by the application that is
under test.```
sudo docker compose up -d
```Edit `config.properties` by choosing your OS and browser:
```
# can be linux or windows
com.andreidodu.test.os=linux# can be firefox or chrome
com.andreidodu.test.browser=chrome
```# Run tests
Run the following command from the root of the project:
```
./gradlew clean test
```# Test flow
![test flow](documentation/images/test-flow.jpg)
# Video
Selenium in action:
[![selenium in action](https://img.youtube.com/vi/0-qYpUTGrhw/0.jpg)](https://www.youtube.com/watch?v=0-qYpUTGrhw)
# Moreover
- this application was developed on Linux and tested on Linux Ubuntu 24.04 LTS (and should work also on Windows 11)
- for Linux users: in case of browser issues, make sure that firefox or chrome were not installed from snap (but with
apt-get install)