This is a comprehensive Selenium automation framework developed using Java. The framework integrates key technologies such as TestNG for testing, ExtentReports for reporting, and employs the Page Object Model (POM) design pattern.
- Selenium WebDriver: Automate web applications for testing purposes.
- TestNG: Manage test configurations and execution.
- ExtentReports: Generate detailed and visually appealing test reports.
- Page Object Model: Enhance code maintainability and reusability.
To use this framework, ensure you have the following installed:
- Java JDK 8 or later
- Maven
- Selenium WebDriver
- TestNG
- ExtentReports
- IDE for Java (Eclipse, IntelliJ IDEA, etc.)
- Clone the repository:
git clone https://github.com/lkumarra/Selenium_Framework.git
- Navigate to the project directory:
cd Selenium_Framework
- Install dependencies:
mvn clean install
- Update configuration:
Modify
src/main/resources/config.properties
to set your application URL and other settings. - Execute tests:
mvn test
- src/main/java: Contains the main codebase.
- pages: Page classes representing the web pages.
- tests: Test classes.
- utils: Utility classes and helper methods.
- src/test/resources: Test resources like test data and configuration files.
- reports: Generated test reports.
After executing the tests, the reports will be generated in the reports
directory. Open the index.html
file in your browser to view the test results.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License.
For any inquiries, please contact [your email address].