Skip to content

GaffarProjects/test_auto_frmwrk_cucuJava

Repository files navigation

Test Automation Framework - Java, Selenium, Cucumber, TestNG

Java Gradle Selenium TestNG Cucumber

A production-ready test automation framework demonstrating enterprise-grade testing practices with Behavior-Driven Development (BDD), Page Object Model, and CI/CD integration.

🚀 Tech Stack

  • Language: Java 21
  • Build Tool: Gradle 8.14.3
  • Test Framework: TestNG 7.10.2
  • BDD Framework: Cucumber 7.19.0
  • Web Automation: Selenium WebDriver 4.35.0
  • CI/CD: Jenkins Pipeline
  • Design Pattern: Page Object Model (POM)
  • Dependency Injection: PicoContainer

📋 Key Features

✅ Behavior-Driven Development (BDD) with Cucumber
✅ Page Object Model for maintainable test architecture
✅ Parallel test execution with TestNG
✅ Cross-browser testing support
✅ Comprehensive HTML and JSON test reports
✅ CI/CD pipeline integration with Jenkins
✅ Automated WebDriver management
✅ Tag-based test execution (@regression, @smoke, @login)

🏗️ Project Structure

🎯 Skills Demonstrated

  • Test Automation Architecture - Scalable framework design
  • BDD Methodology - Cucumber with Gherkin syntax
  • CI/CD Integration - Jenkins pipeline automation
  • Design Patterns - Page Object Model implementation
  • Build Automation - Gradle dependency management
  • Parallel Execution - TestNG multi-threading
  • Version Control - Git/GitHub best practices

🔧 Setup & Execution

Prerequisites

  • Java JDK 21+
  • Gradle 8.x
  • Chrome browser

Run Tests

test_auto_frmwrk_cucuJava/ ├── src/ │ ├── main/java/ │ │ ├── Driver/ # WebDriver factory and management │ │ └── PageObjects/ # Page Object Model classes │ └── test/ │ ├── java/ │ │ ├── Runners/ # Cucumber TestNG runners │ │ └── stepDefinitions/ # Step definitions and hooks │ └── resources/ │ ├── features/ # Cucumber feature files (BDD) │ └── testng.xml # TestNG suite configuration ├── build.gradle # Gradle build configuration └── README.md # Project documentation

🎯 Skills Demonstrated

  • Test Automation Architecture - Scalable framework design
  • BDD Methodology - Cucumber with Gherkin syntax
  • CI/CD Integration - Jenkins pipeline automation
  • Design Patterns - Page Object Model implementation
  • Build Automation - Gradle dependency management
  • Parallel Execution - TestNG multi-threading
  • Version Control - Git/GitHub best practices

🔧 Setup & Execution

Prerequisites

  • Java JDK 21+
  • Gradle 8.x
  • Chrome browser

Run Tests

Clone repository git clone https://github.com/devplaymg111/test_auto_frmwrk_cucuJava.git cd test_auto_frmwrk_cucuJava

Execute all tests ./gradlew clean test

View reports open build/reports/tests/test/index.html open build/reports/cucumber-report.html

📊 Test Reports

  • TestNG HTML Report: build/reports/tests/test/index.html
  • Cucumber HTML Report: build/reports/cucumber-report.html
  • Cucumber JSON: build/reports/cucumber.json

👨‍💻 Author

Mohammed Gaffar
Senior QA Automation Engineer
15+ years IT experience | TCS | Java, Selenium, Cucumber, TestNG, Jenkins


Star this repository if you find it useful!

About

Robust test automation framework with Java, Selenium, Cucumber BDD, and TestNG

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published