Skip to content

Latest commit

Β 

History

History
86 lines (58 loc) Β· 1.89 KB

File metadata and controls

86 lines (58 loc) Β· 1.89 KB

πŸ§ͺ Selenium Python Automation Framework (Pytest)

πŸ“Œ Overview

This project is a Selenium-based automation framework built using Python and Pytest. It is designed with a focus on scalability, maintainability, and clean test architecture.

The framework follows the Page Object Model (POM) pattern and includes structured test layers, reusable utilities, logging, and reporting.


πŸš€ Tech Stack

  • Python
  • Selenium WebDriver
  • Pytest
  • WebDriver Manager
  • pytest-html (for reporting)

πŸ“ Project Structure

saucedemo_project_selenium_python/
β”‚
β”œβ”€β”€ pages/              # Page Object classes (UI actions & locators)
β”œβ”€β”€ tests/              # Test cases
β”œβ”€β”€ utils/              # Utility functions (waits, helpers)
β”œβ”€β”€ reports/            # HTML test reports
β”œβ”€β”€ screenshots/        # Screenshots captured during execution
β”œβ”€β”€ assets/             # Test data or static resources
β”œβ”€β”€ conftest.py         # Pytest fixtures (setup & teardown)
β”œβ”€β”€ pytest.ini          # Pytest configuration

🧠 Framework Highlights

  • Page Object Model (POM) for better code organization
  • Reusable utility methods for handling waits and common actions
  • Pytest fixtures for driver management
  • Integrated logging and HTML reporting
  • Clean and readable test design

▢️ Setup & Execution

1. Clone the repository

git clone https://github.com/Rohini2222/saucedemo_project_selenium_python.git
cd saucedemo_project_selenium_python

2. Install dependencies

pip install -r requirements.txt

3. Execute tests

pytest

πŸ“Š Reports

HTML reports are generated after execution in:

/reports/report.html

πŸ”§ Notes

  • The framework is designed to be easily extendable for additional test scenarios.
  • Supports structured test development with separation of concerns.