Skip to content

anowacki10/SeleniumGrid_Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker_SeleniumGrid

Parallel & Cross-Browser testing project supported by Selenium Grid and Docker :whale:


Content:

About

Project contain multi-container testing app.
Docker containers are build and configurate automatticly from docker-compose.yml file.
Each node container has diffrent browser on linux OS.
This configuration allows parallel testing across browsers, and is easy to customize for more complex environments.
  
Check out the samples with gifs and screenshots of the built environment.  

Technology Stack

  • Maven - software bulding tool
  • JAVA - main Language
  • Docker - separate environments implementation
  • docker-compose - automatic Docker environments building and configuration
  • WebDriver - Selenium web framework used to execute remote UI tests

Requirements

  • Docker Desktop - installed and configurated for your OS
  • Java version "17.0.9" - installed and configurated
  • Apache Maven 3.9.5 - installed and configurated

Instruction

to build locally

  • Clone this. repository using following command:
    git clone https://github.com/anowacki10/Docker_SeleniumGrid.git
  • Get to the repository PATH in cmd
     "./Docker_SeleniumGrid"
  • Run docker-compose using following command in cmd:
    Make sure that docker desktop is running
    docker-compose -f docker-compose.yml up -d
  • Open your browser and get to this URL
     http://localhost:4445/ 
  • When containers are running you can execute testing file using command :
    mvn clean test -DtestngName="testng.xml" 

Samples

  • Grid Network Overview


Alt Text



Alt Text

  • Parallel Test Execution

    [GIF]


Alt Text

Docker-compose configuration

Docker File


Alt text

About

Parallel & Cross-Browser testing project supported by Selenium Grid and Docker 🐳

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published