Skip to content

This repository is part of my personal portfolio as a QA Automation Engineer. It showcases my skills in building automation frameworks from scratch using Selenium, Pytest and Python. The project highlights my expertise in test case design, execution, reporting

License

Notifications You must be signed in to change notification settings

WkjuniorDiaz/Pytest-Web-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Test Automation Framework with Pytest

Overview

This repository contains a Selenium-based test automation framework using Pytest. It is designed to facilitate robust and scalable test automation for web applications, following best practices for maintainability and ease of use.

Features

  • Cross-Browser Testing: Supports multiple browsers (Chrome, Firefox).
  • Page Object Model (POM): Enhances test code maintainability.
  • Data-Driven Testing: Easily integrate data from external sources (e.g., CSV, JSON).
  • Detailed Reporting: Generates detailed test reports using HTML.

Prerequisites

  • Python 3.12 or higher
  • Pip (Python package installer)

Installation

  1. Clone the repository:
    git clone https://github.com/WkjuniorDiaz/Pytest-Web-Automation.git
  2. Navigate to the project directory:
    cd your-repo
  3. Install the required packages:
    pip install pytest
    pip install selenium

Project Structure

  • tests: Contains the test cases.
  • pageObjects: Contains the Page Object Model (POM) classes.
  • utilities: Stores general methods to use and log configuration.
  • reports: Directory where test reports are saved.
  • testData: Contains the data required for the test cases.

Running Tests

Run All Tests

To execute all test cases:

pytest

Run Specific Test File

To run a specific test file:

pytest tests/test_your_test_file.py

Run Tests with Custom Settings

To specify custom settings, such as the browser:

pytest --browser_name chrome

Generate Reports

To generate a test report:

pytest --html=reports/report.html

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository is part of my personal portfolio as a QA Automation Engineer. It showcases my skills in building automation frameworks from scratch using Selenium, Pytest and Python. The project highlights my expertise in test case design, execution, reporting

Topics

Resources

License

Stars

Watchers

Forks

Languages