Skip to content

aljazarifoundation/SeleniumJavaUsingBDD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Project Overview

This project is an automated testing framework using Selenium WebDriver, Cucumber, TestNG, and Allure for reporting.

Folder Structure

project-root/
│—— src/
│   ├—— main/   (Empty, since this is a test project)
│   ├—— test/
│   │   ├—— java/
│   │   │   ├—— definitions/
│   │   │   │   ├—— Hooks.java
│   │   │   │   ├—— LoginPageDefinitions.java
│   │   │   ├—— runners/
│   │   │   │   ├—— CucumberRunnerTests.java
│   │   ├—— resources/
│   │   │   ├—— features/
│   │   │   │   ├—— login.feature
│—— pom.xml
│—— testng.xml
│—— README.md

Prerequisites

Ensure the following are installed:

  • Java 17+
  • Maven
  • Chrome Browser
  • ChromeDriver (matching Chrome version)

Setup & Installation

  1. Clone the repository:
    git clone https://github.com/aljazarifoundation/SeleniumJavaUsingBDD.git
    cd <repo-folder>
  2. Install dependencies:
    mvn clean install

Running Tests

  • To execute tests using Maven:
    mvn test
  • To generate an Allure Report:
    mvn allure:report

Reporting

  • Allure Reports are generated in target/allure-results/
  • Open the report using:
    allure serve allure-results/

Environment Configuration

Modify environment.properties inside target/allure-results/ to set test environment details.


Troubleshooting

  • If WebDriverException occurs, update your ChromeDriver.
  • If **Allure results are outside **``, check pom.xml allure plugin configuration.
  • Ensure Java & Maven paths are correctly set in system environment variables.

For further assistance, refer : https://qaautomation.expert/2024/01/15/allure-report-with-cucumber-and-selenium-testng/.


Video

Selenium-Java-BDD.mp4

Releases

No releases published

Packages

No packages published