https://github.com/mr-possible/selenium-with-docker
A project capable of automated testing done on selenium grid infrastructure setup on AWS.
https://github.com/mr-possible/selenium-with-docker
docker selenium-grid selenium-webdriver
Last synced: about 2 months ago
JSON representation
A project capable of automated testing done on selenium grid infrastructure setup on AWS.
- Host: GitHub
- URL: https://github.com/mr-possible/selenium-with-docker
- Owner: mr-possible
- Created: 2021-08-10T15:04:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T22:22:00.000Z (over 2 years ago)
- Last Synced: 2025-04-10T00:37:58.331Z (about 1 year ago)
- Topics: docker, selenium-grid, selenium-webdriver
- Language: Java
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
About
This project is made by me to demonstrate my learnings on Docker (mostly) and how can we
incorporate the same in Test Automation space.
Folder Structure
- src
- main
- java > com > newtours > pages
- billing
- flightbooking
- flightpreferences
- iternary
- registration
- test
- java > com > newtours
- tests
- parent
- .env
- Dockerfile
- docker-compose.yaml
- healthcheck.sh
- pom.xml
- testng-suite.xml
- src > main > java : Contains our selenium page objects.
- src > test > java : Contains main test class (which contains test cases) and
a base test (which other test classes inherit).
- .env file : This file is like a properties file and contains our test properties like
browser and module which can be used project-wide.
- docker-compose.yaml : This is .yaml file which describes what kind of nodes we want to be up and running
prior to execution.
- healthcheck.sh : It is a shell script which contains commands to check the status of our selenium grid hub.
- Dockerfile : It is an extensionless file that helps Docker engine to execute steps that are required
to be performed at every stage of the execution. It also includes what core dependencies
we require.
- pom.xml : Since we are using a typical Maven project, hence this pom.xml helps us to
manage our dependencies and version of the project.
- testng-suite.xml : This suite file contains the list of tests to be run.
How To Run ?
- On your terminal, please run the following command:
docker-compose up
Prerequisites
- Docker needs to be installed on your machine.
- Java 17 or 17+ required.