⬡ Hub
Skip to content

Java

Selenium Frameworks

This project provides a collection of four different Selenium frameworks, each demonstrating a different approach to test automation.

Frameworks

  1. Keyword-Driven Framework: This framework uses keywords to represent actions to be performed on the application. The test cases are created by combining these keywords in a specific order.

  2. Data-Driven Framework: This framework separates the test data from the test scripts. The test data is stored in an external file (e.g., Excel, CSV) and is read by the test scripts during execution.

  3. Hybrid Framework: This framework is a combination of the Keyword-Driven and Data-Driven frameworks. It uses keywords to represent actions and reads the test data from an external file.

  4. BDD with Cucumber Framework: This framework uses Behavior-Driven Development (BDD) principles to write test cases in a human-readable format (Gherkin). The test cases are then implemented using step definitions.

Getting Started

To get started with this project, you will need to have the following installed:

  • Java Development Kit (JDK)
  • Apache Maven

Installation

  1. Clone the repository:
git clone https://github.com/your-username/selenium-frameworks.git
  1. Navigate to the project directory:
cd selenium-frameworks

Running the Tests

To run the tests for a specific framework, navigate to its directory and run the following command:

mvn test

For example, to run the tests for the Keyword-Driven framework, you would run the following commands:

cd keyword-driven
mvn test

Files and Subdirectories