https://github.com/rookieintraining/selenium-testng-boilerplate
https://github.com/rookieintraining/selenium-testng-boilerplate
automation-testng automation-ui gradle selenium testng webdriver
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rookieintraining/selenium-testng-boilerplate
- Owner: rookieInTraining
- Created: 2019-04-01T09:20:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T15:26:58.000Z (about 5 years ago)
- Last Synced: 2025-03-05T10:49:24.162Z (over 1 year ago)
- Topics: automation-testng, automation-ui, gradle, selenium, testng, webdriver
- Language: Java
- Size: 17.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selenium with TestNG Boilerplate
Boilerplate code for writing your java based selenium tests using testNG.
# Notes
- The framework spawns the browsers (max. of 10) in the test
- The framework re-uses the browsers spawned for the remainder of the tests
# How to run the tests
Use the simple gradle syntax to run the test :
```
gradle clean test
```
Apart from the above, there are few env variables that can be used while executing the tests :
| |Purpose |Default Value |
|----------------|-------------------------------|-----------------------------|
|selectedBrowser |Uses the value provided by the users to run the tests |chrome |
|headless |Runs the tests in the browser's headless mode |false |
|runOnGrid |Executes test on the grid if set to true else runs it on local|false |
Hence, in order to run the test on the grid for Firefox in headless mode we can use the below command :
```
gradle clean test -DselectedBrowser=Firefox -Dheadless=true -DrunOnGrid=true
```