Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.95 KB

README.md

File metadata and controls

50 lines (42 loc) · 1.95 KB

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.