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
| Capability | Description |
|---|---|
| Image Comparison | Compare baseline and checkpoint images |
| Baseline Management | Save and manage reference images |
| Checkpoint Management | Save current images for comparison |
| Comparison Results | Retrieve comparison results |
| Visual Locators | Save element location information |
| User Authentication | Authenticate users through login APIs |
| Test Run Management | Retrieve test run details |
How it works
The general interaction with the service follows this sequence:
- An external application sends a request to PixelSense.
- PixelSense processes the requested operation.
- The service performs the corresponding image or data operation.
- The API returns a response to the calling application.
03. API Endpoints
The following endpoints are examples of the available API operations.
| HTTP Method | Endpoint | Purpose |
|---|---|---|
POST | /api/compare/run | Compare two images |
POST | /api/baselines/save | Save a baseline image |
POST | /api/checkpoints/save | Save a checkpoint image |
GET | /api/comparisons/{id} | Retrieve comparison results |
POST | /api/visual-locators/save | Save element locations |
POST | /api/user/login | Authenticate 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.
| Documentation | Description |
|---|---|
| Architecture and Contents | Application organization and documentation map |
| Image Comparison | Comparison controllers and processing services |
| Modules | Individual 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