https://github.com/aljazarifoundation/seleniumjavausingbdd
this is the main repository testing for automation web using testng
https://github.com/aljazarifoundation/seleniumjavausingbdd
allure-report automation gherkin java selenium software-testing testng webtesting
Last synced: 5 months ago
JSON representation
this is the main repository testing for automation web using testng
- Host: GitHub
- URL: https://github.com/aljazarifoundation/seleniumjavausingbdd
- Owner: aljazarifoundation
- Created: 2025-02-19T09:26:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-19T09:42:25.000Z (about 1 year ago)
- Last Synced: 2025-02-19T10:31:11.465Z (about 1 year ago)
- Topics: allure-report, automation, gherkin, java, selenium, software-testing, testng, webtesting
- Language: Java
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```sh
git clone https://github.com/aljazarifoundation/SeleniumJavaUsingBDD.git
cd
```
2. Install dependencies:
```sh
mvn clean install
```
## Running Tests
- To execute tests using **Maven**:
```sh
mvn test
```
- To generate an **Allure Report**:
```sh
mvn allure:report
```
## Reporting
- **Allure Reports** are generated in `target/allure-results/`
- Open the report using:
```sh
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
https://github.com/user-attachments/assets/8994abe9-75a9-43e3-838f-0af492dc4e35