Visual Content Rendering Test via Screenshot Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Testing the rendering of visual content, such as advertisements, across multiple environments and feature sets is cumbersome due to the need for specific test code for each environment, which becomes outdated with changes in environments or content modifications.

Innovation Solution

Creating a test file that is rendered in various environments to capture screenshot images, comparing these images to target images of the desired visual appearance, and providing failure notifications for inconsistencies, allowing for a single test file to be used across different environments and feature sets without the need for frequent updates.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If test code is written for each different environment to test advertisement rendering, then testing accuracy for each environment is improved, but device complexity and maintenance burden increase significantly

Engineering Contradiction:
Improvetesting accuracyVSAvoidtest code complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent uses screenshot images as copies of the visual rendering output to represent the actual display result. Instead of executing complex test code for each environment, the system captures visual snapshots and compares them against expected screenshots, simplifying the testing mechanism while maintaining accuracy across diverse environments

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent creates a universal testing approach that works across multiple environments (different browsers, operating systems, devices) using a single test file generation methodology. The system generates test files that can be rendered in any environment and compares results using image matching, eliminating the need for environment-specific test code while maintaining broad compatibility

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Measurement precision

If specific test code is created for each advertisement to test rendering, then testing precision for that advertisement is improved, but loss of time increases when advertisements are modified

Engineering Contradiction:
Improvetesting precisionVSAvoidtime to update test code
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system uses screenshot copying to capture the visual output of advertisement rendering. When an advertisement is modified, the test process simply generates a new screenshot and compares it against the expected screenshot, eliminating the need to update complex test code. The visual copy (screenshot) automatically reflects any changes in the advertisement

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The testing system performs self-updating through automatic screenshot generation and comparison. When an advertisement changes, the system automatically generates new test screenshots and compares them against expected results without requiring manual intervention to update test code. The visual nature of the test allows the system to self-adapt to advertisement modifications

Inventive Principle:
Principle #25Self-service

3Measurement precision

If test code is updated whenever environment changes to maintain testing accuracy, then measurement precision is preserved, but loss of time and ease of operation deteriorate

Engineering Contradiction:
Improvetesting accuracyVSAvoidease of maintaining tests
Core Design Contradiction:
Measurement precisionVSEase of operation

Solution Approach 1:

The patent uses screenshot images as environment-agnostic copies of rendering output. Since screenshots are visual representations that can be generated in any environment, the system does not need to update test logic when environments change. The screenshot comparison approach naturally adapts to environmental variations without requiring manual test maintenance

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The testing system is designed to be universally applicable across changing environments. The same test file generation and screenshot comparison process works regardless of browser, operating system, or device changes, making the system easy to operate without requiring updates when the test environment evolves

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS8971642B2Testing the rendering of visual content
Publication Date: 2015.03.03 GOOGLE LLC
  • US8971642B2 patent drawing
  • US8971642B2 patent drawing
  • US8971642B2 patent drawing

AI summary

Methods, systems, and apparatus for testing content rendering are described. A method includes receiving input specifying a change to a parameter relating to display of content in a webpage, in response to receiving the input, generating a test image of the webpage including the content, comparing a target image of the content with the generated test image to determine whether the generated test image includes the target image of the content, and selectively providing a failure notification based upon a result of the comparison.