Skip to main content

PixelSense API

Image Comparison & Visual Regression Testing Service

A REST-based microservice for automated visual comparison of baseline and checkpoint images.

01. Introduction​

Purpose​

The PixelSense Image Compare Service is a Java Spring Boot microservice that exposes REST API endpoints for automated visual regression testing.

It provides 50+ HTTP endpoints that allow external applications to compare baseline (reference) images against checkpoint (current) images and detect unintended visual changes automatically.

Instead of implementing image-comparison logic directly within an application, external systems can integrate with PixelSense through REST APIs.

:::info Key concept PixelSense provides image-comparison functionality as an independent API service. External applications communicate with it using HTTP requests and receive comparison results. :::

02. Project Overview​

Core responsibilities​

CapabilityDescription
Image ComparisonCompare baseline and checkpoint images
Baseline ManagementSave and manage reference images
Checkpoint ManagementSave current images for comparison
Comparison ResultsRetrieve comparison results
Visual LocatorsSave element location information
User AuthenticationAuthenticate users through login APIs
Test Run ManagementRetrieve test run details

How it works​

The general interaction with the service follows this sequence:

  1. An external application sends a request to PixelSense.
  2. PixelSense processes the requested operation.
  3. The service performs the corresponding image or data operation.
  4. The API returns a response to the calling application.

03. API Endpoints​

The following endpoints are examples of the available API operations.

HTTP MethodEndpointPurpose
POST/api/compare/runCompare two images
POST/api/baselines/saveSave a baseline image
POST/api/checkpoints/saveSave a checkpoint image
GET/api/comparisons/{id}Retrieve comparison results
POST/api/visual-locators/saveSave element locations
POST/api/user/loginAuthenticate a user
GET/api/test-runs/{id}Retrieve test run details

:::tip API reference These are representative endpoints from the existing documentation. Refer to the individual controller documentation for detailed request parameters, response structures and implementation details. :::

04. Intended Users​

PixelSense supports different roles involved in software quality and release processes.

QA Engineers​

Run visual regression tests and review differences between baseline and checkpoint images.

Developers​

Identify unintended visual changes during application development.

DevOps Teams​

Use visual regression results as part of release and pull-request validation workflows.

Product Teams​

Verify visual changes before releasing product updates.

05. Technical Documentation​

Explore the following sections for implementation-level details.

DocumentationDescription
Architecture and ContentsApplication organization and documentation map
Image ComparisonComparison controllers and processing services
ModulesIndividual application modules and their implementation

06. Documentation Index​

The PixelSense API documentation is organized into the following areas:

  • Image Comparison

    • CompareController
    • CompareService
    • QuadTreeService
    • RegionMaskService
    • ResponseHandler
  • Application Modules

    • Admin
    • Baseline
    • Variant
    • Checkpoint
    • Feature
    • Profile
    • Region

APPEIRIX IT Technologies Private Limited · Internal Technical Documentation