Selenium-Test-Template is a template project designed to accelerate web automation testing using Selenium and TestNG. This repository provides a structured foundation for creating and managing automated tests for web applications.
- Pre-configured Maven project for easy setup and dependency management.
- Integrated TestNG for organized test suite management and reporting.
- Utility functions for common Selenium operations to enhance test development efficiency.
- Example test cases to serve as a reference for writing your own tests.
- Easily adaptable for different web applications and testing scenarios.
- Java Development Kit (JDK) installed
- Maven installed
- Web browser of your choice (e.g., Chrome, Firefox) installed
To set up the project, run the following command:
mvn clean install
This will download the required dependencies and set up the project for use.
To execute your tests, run the following command:
mvn test
This command will trigger the TestNG framework to execute all TestNG xmls located in the src/main/resources
directory.
After executing tests using TestNG, the framework generates HTML reports which can be located in the target/surefire-reports
directory.
Additionally, this project utilizes the ExtentReports library for enhanced reporting capabilities. The ExtentReports generated reports can be found in the reports/index.html
file.
Contributions are welcome! If you'd like to enhance this template or report issues, please open a pull request or submit an issue.
This project is in the public domain. You are free to use, modify, and distribute it without any restrictions.