AL
aljazarifoundation/SeleniumJavaUsingBDD
this is the main repository testing for automation web using testng
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
- Clone the repository:
git clone https://github.com/aljazarifoundation/SeleniumJavaUsingBDD.git cd <repo-folder>
- 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.xmlallure 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
https://github.com/user-attachments/assets/8994abe9-75a9-43e3-838f-0af492dc4e35