Visual Regression Testing via Spatial Unit-by-Unit Screenshot Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for testing electronic visual user interface outputs across multiple platforms fail to ensure consistent visual rendering, as changes in user interfaces often result in visual regressions and discrepancies between different web browsers and operating systems, which are difficult to detect and address.

Innovation Solution

A method involving a testing framework that captures and compares screenshots of user interfaces across various web browsers, using spatial unit-by-unit comparisons and differential image generation to identify and validate visual discrepancies, ensuring consistent rendering across platforms.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If user interface changes are made to improve functionality or design, then the user interface features are enhanced, but visual regressions and rendering discrepancies occur across different platforms and browsers

Engineering Contradiction:
Improveuser interface functionalityVSAvoidvisual consistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system performs preliminary visual regression testing by capturing screenshots of the user interface in multiple browsers and platforms before the changes are deployed. This allows detection of visual discrepancies in advance, enabling corrective actions to be taken before the changes cause problems in production environments.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system provides feedback by comparing captured screenshots against each other and highlighting visual differences. This feedback mechanism allows developers to identify and address visual regressions caused by interface changes, ensuring consistent rendering across platforms while maintaining enhanced functionality.

Inventive Principle:
Principle #23Feedback

2Reliability

If automated screenshot comparison is performed to detect visual regressions, then visual consistency is improved, but the complexity of the testing system increases

Engineering Contradiction:
Improvevisual consistencyVSAvoidtesting system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system creates visual copies in the form of screenshots for each platform and browser configuration. These copies are then compared automatically to detect visual regressions. By working with image copies rather than complex rendering engines, the system simplifies the comparison process while maintaining comprehensive testing coverage.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The testing system is segmented into modular components: screenshot capture modules for different browsers, comparison modules for detecting differences, and reporting modules for presenting results. This segmentation allows each component to be developed and maintained independently, reducing overall system complexity while improving visual consistency detection.

Inventive Principle:
Principle #1Segmentation

3Measurement precision

If manual visual inspection of user interface changes is performed, then detection precision can be maintained, but the time required for testing increases

Engineering Contradiction:
Improvevisual difference detectionVSAvoidtesting time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system replaces manual visual inspection with automated image comparison algorithms. The automated system processes screenshots from multiple platforms and browsers, comparing them to detect visual differences without human intervention. This substitution maintains detection precision for subtle visual regressions while dramatically reducing the time required for testing.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The automated testing system operates continuously, capturing screenshots and comparing them as soon as user interface changes are made. This continuous automated monitoring eliminates the interruptions and delays associated with manual inspection, maintaining high detection precision while accelerating the testing process through uninterrupted automated operation.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentEP3557423B1System and method for testing electronic visual user interface outputs
Publication Date: 2022.06.29 THINK RES
  • EP3557423B1 patent drawingFigure 1A
  • EP3557423B1 patent drawingFigure 1B
  • EP3557423B1 patent drawingFigure 2

AI summary

A system and method are provided for testing electronic visual user interface outputs. The method includes obtaining a baseline set of one or more screen shots of a user interface, the user interface comprising one or more elements; generating an updated set of one or more screen shots of the user interface, the updated set comprising one or more changes to the user interface; comparing the baseline set to the updated set to generate a differential set of one or more images illustrating differences in how at least one of the user interface elements is rendered. The comparing includes, for each screen shot: identifying coordinates of edges of a content portion of interest relative to an entire content captured in that screen shot; cropping the content portion using the coordinates from the baseline and updated versions of the entire content captured in that screen shot to obtain content portions of a same size for comparison; and performing a spatial unit-by-unit comparison of the same size cropped content portions to generate a differential image for that screen shot. The method also includes displaying the differential set of one or more images; and receiving an input validating the one or more changes to the user interface, or rejecting the one or more changes to the user interface.