Skip to content

pradyumna632/Data-Driven-Testing-Framework

Repository files navigation

Data-Driven Testing Framework

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.

Features

  • 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.

Tech Stack

  • Selenium WebDriver
  • Java
  • Apache POI
  • TestNG
  • Maven

Website Used for Testing

The framework is designed to test the Sauce Labs Demo website.

Installation

  1. Clone the repository: git clone https://github.com/pradyumna632/Data-Driven-Testing-Framework
  2. Navigate to the project directory: cd data-driven-testing-framework
  3. Install dependencies: mvn clean install

Usage

  1. Update the test data in the Excel file located at src/main/java/com/testData/SwagLabsTestData.xlsx.
  2. Run the tests using the TestNG XML file: testng.xml.
  3. View test results in the console or in the test reports generated by TestNG.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published