Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osandadeshan/selenium-java-web-automation-demo
This project serves as a boilerplate for automating web applications across various browsers and environments using TestNG and the Selenium library.
https://github.com/osandadeshan/selenium-java-web-automation-demo
automation automation-ui extentreports java page-object-model selenium selenium-java selenium-webdriver testng
Last synced: about 19 hours ago
JSON representation
This project serves as a boilerplate for automating web applications across various browsers and environments using TestNG and the Selenium library.
- Host: GitHub
- URL: https://github.com/osandadeshan/selenium-java-web-automation-demo
- Owner: osandadeshan
- License: mit
- Created: 2020-08-30T04:06:20.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-30T15:49:43.000Z (11 months ago)
- Last Synced: 2023-12-30T16:42:56.150Z (11 months ago)
- Topics: automation, automation-ui, extentreports, java, page-object-model, selenium, selenium-java, selenium-webdriver, testng
- Language: Java
- Homepage:
- Size: 4.58 MB
- Stars: 4
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web Application Automation Using Selenium & TestNG (Cross Browsers)
This project serves as a boilerplate for automating web applications across various browsers and environments using TestNG and the Selenium library.
[![Selenium Java Web UI Automation CI](https://github.com/osandadeshan/selenium-java-web-automation-demo/actions/workflows/selenium-java-ci.yml/badge.svg?branch=master)](https://github.com/osandadeshan/selenium-java-web-automation-demo/actions/workflows/selenium-java-ci.yml)
## Prerequisites
1. Java
2. Maven
3. Chrome## How to run tests
1. Using IntelliJ IDEA
* Go to Maven Profiles
* Select `chrome`, `headless-chrome`, `firefox`, `headless-firefox`, `edge`, `ie` or `safari` Maven Profile as the browser
* Select `dev`, `qa`, `uat`, `pre-prod` or `prod` Maven Profile as the environment
* Select the test classes on the `src/test/java` folder
* Right-click and click on `Run`2. Using Command Line
* To run the smoke test suite in Firefox browser against the QA environment`mvn clean test -Pfirefox,qa,smoke-test`
* To run the regression test suite in Safari browser against the UAT environment`mvn clean test -Psafari,uat,regression-test`
**Note**: By default, if no Maven profiles are selected, the tests will be executed on the `chrome` browser and in the `dev` environment.
## License
[MIT License](https://opensource.org/licenses/MIT)## Copyright
Copyright 2023 [MaxSoft](https://maxsoftlk.github.io/).