Skip to content

A maven testng code to run your selenium scripts on Selenoid (Docker based Selenium hub)

Notifications You must be signed in to change notification settings

jyoti-c/selenoid-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

UPDATE - UPGRADED TO SELENIUM VERSION 4

selenoid-example

A maven testng code to run your selenium scripts on Selenoid (Docker based Selenium hub).

For Selenoid installation with Terraform, you may use the main.tf file in the resources folder.

The code consists of sample tests run on Chrome and Firefox on Selenoid

YouTube Playlist - https://youtube.com/playlist?list=PLKpa9fJrn0A07frfki3p5fMCQJ08aaaZ-

  • Steps to setup Selenoid with Terraform
  1. Update the browser config and video path in the main.tf file.
  2. Execute the init command
terraform init
  1. Execute the plan command
terraform plan
  1. Execute the apply command
terraform apply
  • mvn command to run a single test
mvn -Dtest=SampleTest_Chrome test
  • mvn command to run multiple tests
mvn -Dtest=SampleTest_Chrome,uiTests.FirefoxUITest test
  • mvn command to run all tests in a package
mvn -Dtest="uiTests.**" test
  • mvn command to run all tests matching a group name
mvn -Dtest="**" -Dgroups="chrome" test

About

A maven testng code to run your selenium scripts on Selenoid (Docker based Selenium hub)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published