GUI Automation Testing Error Context via Video

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

GUI automation testing error messages are often unclear, making it difficult for testers to determine the source of errors without additional context, thereby increasing their workload.

Innovation Solution

A method that generates a baseline video of a GUI's successful execution, which is combined with an error message to provide context and allow testers to pinpoint the error by comparing it to a test recording, thereby enhancing error message legibility.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If a static screenshot is issued with an error message, then the error message is provided, but the legibility and context for determining the error source is insufficient

Engineering Contradiction:
Improveerror context informationVSAvoiderror message structure
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The patent transitions from a static 2D screenshot to a temporal dimension by incorporating video recording. The video captures the dynamic sequence of GUI actions and states leading up to the error, adding the time dimension to the error context. This allows testers to observe the progression of events rather than just a single frozen moment, significantly improving error source identification.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Solution Approach 2:

The system performs preliminary recording of the entire test execution process before the error occurs. By continuously capturing the GUI state and actions during test execution, the system ensures that when an error happens, the complete context is already recorded and immediately available, eliminating the need for post-error investigation of multiple separate logs or screenshots.

Inventive Principle:
Principle #10Preliminary action

2Ease of operation

If only an error message is issued without video context, then the error notification is simple, but the tester workload increases due to lack of context

Engineering Contradiction:
Improveerror diagnosis easeVSAvoidtester time for error analysis
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The video recording serves as an intermediary between the error occurrence and the tester's analysis. Instead of requiring testers to manually trace through test scripts or correlate multiple screenshots with the test sequence, the video provides a direct visual intermediary that shows exactly what happened on screen, making error diagnosis immediate and intuitive.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system provides immediate visual feedback to testers by issuing the video recording along with the error message. This feedback loop allows testers to directly observe the error context without additional investigation steps, reducing the time required to understand and diagnose the error source while maintaining comprehensive diagnostic information.

Inventive Principle:
Principle #23Feedback

3Loss of information

If a video recording is generated during test execution, then the error context is improved, but the data processing and storage requirements increase

Engineering Contradiction:
Improvetest execution contextVSAvoidvideo data volume
Core Design Contradiction:
Loss of informationVSQuantity of substance

Solution Approach 1:

The system extracts only the essential visual information needed for error diagnosis by capturing screenshots at key moments during test execution rather than continuously recording. By selecting specific frames that represent important GUI states and actions, the system reduces video data volume while preserving the contextual information necessary for error analysis.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS10025695B2Enhancing GUI automation testing using video
Publication Date: 2018.07.17 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10025695B2 patent drawing
  • US10025695B2 patent drawing
  • US10025695B2 patent drawing

AI summary

A method, computer program product, and system for testing an application on a GUI are provided. A request to perform a test of an application is received. The test uses a script that includes instructions to perform real actions on a GUI of the application. Execution of the script is initiated. A test recording is generated by capturing a first plurality of screenshots of the GUI during the test. In response to detecting an error during execution of the script, a baseline video is retrieved. The baseline video includes a second plurality of screenshots of the GUI from a successful execution of the script. An error message is issued. The error message includes at least a portion of the test recording and at least a portion of the baseline video.