Skip to content

Vinayaka226/Dockerized_Selenium_Webdriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commands

mvn clean test => Run with default System Variable values
mvn clean test -Dbrowser=chrome -Dselenium.grid.enabled=true

Package the code

mvn clean package -DskipTests

java -cp [Path_where_classes_are_present] org.testng.TestNG [suit_file_path]

DOCKER

Clean, Compile and Package the code Create Docker image

mvn clean package -DskipTests
docker build -t=<username>/selenium .

SELENIUM GRID

Get the Grid Up and Running. Below will bring up 2 instances of Chrome Run the tests

docker-compose -f grid.yaml up --scale chrome=2 -d
BROWSER=chrome docker-compose up

Once successfully executed the results/reports are available under output folder

Run below to bring the Grid down

docker-compose -f grid.yaml down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published