This project is made by me to demonstrate my learnings on Docker (mostly) and how can we incorporate the same in Test Automation space.
- 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.
docker-compose up
- Docker needs to be installed on your machine.
- Java 17 or 17+ required.