Automated Visual Regression Testing for Web UI

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional regression testing methods are inefficient and error-prone for identifying visual bugs in software applications, particularly in complex online services, as they rely on manual human effort and are slow, especially when dealing with numerous web pages and UI changes across different versions.

Innovation Solution

A method for visual regression testing that captures images of web pages in different versions of an application and compares them pixel-by-pixel to generate visualizations of differences, allowing for automated identification of visual bugs without requiring manual testing or writing specific tests.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If manual human effort is used for regression testing, then testing accuracy can be maintained, but testing speed and productivity are slow

Engineering Contradiction:
Improvetesting speedVSAvoidtime for manual testing
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent replaces manual visual inspection with automated image processing systems. The system captures screenshots of web pages, compares them pixel-by-pixel against reference images, and automatically generates difference reports. This substitution of mechanical manual checking with automated computational processes dramatically increases testing speed and productivity while reducing time loss.

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

Solution Approach 2:

The patent creates digital copies (screenshots) of web pages and compares them against reference copies. By working with image copies rather than directly manipulating the actual web pages during testing, the system enables rapid automated comparison without affecting the original application, thus improving testing throughput and reducing time requirements.

Inventive Principle:
Principle #26Copying

2Measurement precision

If conventional regression testing methods are used, then existing functionality can be verified, but visual bugs are difficult to detect

Engineering Contradiction:
Improvevisual bug detection accuracyVSAvoiddifficulty of identifying visual differences
Core Design Contradiction:
Measurement precisionVSDifficulty of detecting and measuring

Solution Approach 1:

The patent replaces human visual inspection with automated image processing and comparison algorithms. The system performs pixel-by-pixel comparison between current and reference screenshots, automatically detecting visual differences such as layout changes, color variations, and positioning errors. This automated detection mechanism significantly improves measurement precision for visual bug detection while reducing the difficulty of identifying visual differences.

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

Solution Approach 2:

The patent utilizes color and pixel value differences as detection signals. By comparing color values, brightness levels, and pixel data between images, the system can precisely identify visual changes and bugs. The difference reporting mechanism highlights color and pixel variations that indicate visual defects, making them easy to detect and measure.

Inventive Principle:
Principle #32Color changes

3Productivity

If manual testing is performed across multiple web pages, then comprehensive coverage can be achieved, but the process is time-consuming

Engineering Contradiction:
Improvetesting efficiencyVSAvoidtime for regression testing
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent implements continuous automated testing that can process multiple web pages sequentially without interruption. The system automatically captures images from all web pages in the application, compares them against references, and generates comprehensive difference reports in a continuous workflow. This eliminates the start-stop nature of manual testing and maintains continuous productive action, significantly improving efficiency while reducing total time.

Inventive Principle:
Principle #20Continuity of useful action

Solution Approach 2:

The patent creates and compares digital copies of all web pages automatically. By working with image copies rather than manually navigating and inspecting each page, the system can rapidly process multiple pages in parallel or sequence, achieving comprehensive coverage without the time consumption of manual inspection. The automated copying and comparison process scales efficiently with the number of web pages.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS10146753B2Visual regression testing tool
Publication Date: 2018.12.04 INTUIT INC
  • US10146753B2 patent drawing
  • US10146753B2 patent drawing
  • US10146753B2 patent drawing

AI summary

Techniques are disclosed for performing visual regression testing for a software application. In one embodiment, a regression testing tool identifies a first collection of web pages from a first version of the application, and captures an image of each identified web page. The regression testing tool identifies, for one or more of the identified web pages, a corresponding web page in a second collection of web pages from a second version of the application, and captures an image of the corresponding web pages. The regression testing tool identifies differences in pixel values for images in the first collection and images in the second collection to determine differences between the image of at least one web page in the first collection and the image of the corresponding web page. The regression testing tool generates an image providing a visualization of the one or more differences.