Skip to content

A sample automation framework built with Cucumber, Selenium, and Java to automate the testing of SauceDemo (a mock e-commerce site used for test automation demos).

Notifications You must be signed in to change notification settings

pothurajtharun/SauceDemoCucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 SauceDemoCucumber

An end-to-end test automation framework for SauceDemo, built using Selenium, Cucumber, and Java. This project demonstrates Behavior-Driven Development (BDD) practices with readable Gherkin scenarios and a scalable Page Object Model (POM) architecture.


🚀 Features

  • BDD with Cucumber: Write test cases in Gherkin syntax for better readability and collaboration.
  • Selenium WebDriver Integration: Automate browser interactions effectively.
  • Page Object Model (POM): Maintain clean separation between test scripts and page-specific code.
  • Maven Build Tool: Manage project dependencies and build lifecycle efficiently.
  • Modular Test Scenarios: Easily extend and maintain test cases.

🛠️ Tech Stack

  • Language: Java
  • Testing Framework: Cucumber
  • Automation Tool: Selenium WebDriver
  • Build Tool: Maven
  • Design Pattern: Page Object Model (POM)

⚙️ Prerequisites

  • Java Development Kit (JDK) 21 or higher
  • Maven 3.6 or higher
  • An IDE like IntelliJ IDEA or Eclipse
  • Google Chrome browser

🧪 Getting Started

  1. Clone the repository:

    git clone https://github.com/pothurajtharun/SauceDemoCucumber.git
  2. Navigate to the project directory::

    cd SauceDemoCucumber
    
  3. Execute tests::

    mvn test
    

About

A sample automation framework built with Cucumber, Selenium, and Java to automate the testing of SauceDemo (a mock e-commerce site used for test automation demos).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published