Skip to content

aswanirs23/Image-comparison-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Matching Framework

Table of Contents

Overview

The Automated Image Comparison Framework is designed to facilitate the comparison of web page screenshots and thumbnails against predefined template images. Utilizing tools such as Playwright for browser automation and OpenCV for image processing, this framework enables efficient validation of visual elements on web pages.

Features

  • Screenshot Comparison: Captures full-page screenshots and compares them against template images to identify visual discrepancies.
  • Thumbnail Matching: Extracts thumbnail images from web pages and compares them with predefined templates to ensure consistency.
  • Logging: Provides detailed logging of test execution and results for easy debugging and analysis.

Installation

  1. Clone the repository:

    git clone https://github.com/aswanirs23/Image-matching-framework.git
    cd Image-matching-framework
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install project dependencies:

    pip install -r requirements.txt
  4. Running Tests:

    To run a Single Test File, use the following command:

    pytest -s test_file.py

    To run the entire suite, use the following command:

    pytest -s

Allure Reporting

You can generate and view the report using:

allure serve output/allure-results

Folder Structure

Purpose of key folders in project is below:

  • src/pages: Contains modules that define page objects or components
  • src/utils: Contains common functionalities such as file operations, image processing, and logging, which are used across the project
  • tests: Contains test modules organized by functionality
  • output/logs: Stores log files generated during the execution of the application or tests.
  • config.py : Store configuration settings

Who do I talk to?

  • Aswani R S

About

This project automates the verification of AI Ads Library thumbnails against predefined baseline images. Using web automation and image processing techniques, it captures and compares ad images to ensure accuracy in ad display validation while minimizing manual efforts.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages