This repository contains a Data-Driven Testing Framework developed in Java for testing web applications. The framework is designed to automate test scenarios using Selenium WebDriver, Apache POI for Excel file handling, TestNG for test execution, and Maven for project management.
- Utilizes the Page Object Model (POM) design pattern for enhanced code organization and maintainability.
- Implements Data-Driven Testing by integrating Excel files as the primary data source for test cases.
- Uses annotations like @Test, @BeforeMethod, @AfterMethod, and @DataProvider for streamlined test execution.
- Supports testing of various modules, with the Login Page module as a demonstration.
- Provides flexibility and scalability for adding new test cases and modules.
- Selenium WebDriver
- Java
- Apache POI
- TestNG
- Maven
The framework is designed to test the Sauce Labs Demo website.
- Clone the repository:
git clone https://github.com/pradyumna632/Data-Driven-Testing-Framework
- Navigate to the project directory:
cd data-driven-testing-framework
- Install dependencies:
mvn clean install
- Update the test data in the Excel file located at
src/main/java/com/testData/SwagLabsTestData.xlsx
. - Run the tests using the TestNG XML file:
testng.xml
. - View test results in the console or in the test reports generated by TestNG.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.