Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/salwa1012/webautomationtesting-iti-graduationproject
This project is a Selenium-based web automation framework using Java, TestNG for execution, and Cucumber for BDD. It follows the Page Object Model (POM) for clean, maintainable code.
https://github.com/salwa1012/webautomationtesting-iti-graduationproject
apache-poi cucumber-java ddt intellij java maven pom selenium selenium-webdriver
Last synced: 21 days ago
JSON representation
This project is a Selenium-based web automation framework using Java, TestNG for execution, and Cucumber for BDD. It follows the Page Object Model (POM) for clean, maintainable code.
- Host: GitHub
- URL: https://github.com/salwa1012/webautomationtesting-iti-graduationproject
- Owner: Salwa1012
- Created: 2024-10-04T15:44:51.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-15T22:54:14.000Z (23 days ago)
- Last Synced: 2024-10-17T09:57:03.793Z (22 days ago)
- Topics: apache-poi, cucumber-java, ddt, intellij, java, maven, pom, selenium, selenium-webdriver
- Language: Java
- Homepage:
- Size: 378 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🚀 Selenium Web Automation Framework
This project is a Selenium-based web automation framework built with Java, using TestNG for execution and Cucumber for Behavior-Driven Development (BDD). The framework follows the Page Object Model (POM) to ensure clean, maintainable, and scalable code.
📋 Features
This automation framework includes comprehensive test scenarios for the following actions:
Registration
Login
Logout
Search for a Product
Add Product to Shopping Cart
Update Product Quantity in Cart
Checkout
View Order History
Return Order
Add Product to Wish List
Add Product to Compare
Add Product Review
Gift Certificate Purchase
Change Currency
Change Password
Use Contact Us
🛠 Technologies and Tools
Java: Main programming language
Maven: Dependency management
IntelliJ IDEA: IDE for development
Selenium WebDriver: Browser automation
TestNG: Test execution framework
Cucumber: BDD support with Gherkin syntax
Page Object Model (POM): Design pattern for organizing web elements and interactions
Apache POI: Data-driven testing (DDT) with Excel files
📂 Project Structure
src/main/java: Contains the core code, including page object classes.
src/test/java: Contains the test classes, written with TestNG and Cucumber.
src/test/resources: Contains Cucumber feature files.
data: Holds test data for data-driven testing using Excel.
🚀 Getting Started
Prerequisites
Install Java JDK (version 11 or higher)
Install Maven
Install IntelliJ IDEA
Setup Instructions
Clone the repository:
git clone https://github.com/yourusername/your-repo.git
Import the project into IntelliJ as a Maven project.
Update the dependencies by running:
mvn clean install
▶️ Running Tests
To run all tests with TestNG:
mvn test
To execute specific Cucumber scenarios:
mvn test -Dcucumber.options="--tags @tagname"