Automated Test Script Generation for Customized GUI Validation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional automated testing scripts for GUIs are inflexible and require extensive maintenance due to customizable GUIs, leading to human error and inefficiency in testing complex applications with extensive customization options.

Innovation Solution

An automated method and system for generating test scripts by parsing and cataloging GUI elements in a GUI element catalog, allowing for the creation of flexible test scripts that can be applied to new images of customized applications, including the generation of delete scripts to reverse data manipulations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual testing scripts are created for customized applications, then testing coverage for specific customizations can be achieved, but the scripts become inflexible and require extensive maintenance when customizations change

Engineering Contradiction:
Improvetesting coverageVSAvoidmaintenance burden
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system enables self-service automated test script generation by automatically parsing application images, identifying GUI elements, and generating test scripts without requiring manual intervention from testing staff for each customization scenario

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system dynamically adapts test scripts by detecting changes in GUI elements and their properties through image parsing, automatically adjusting test parameters to match the current application state rather than relying on static pre-defined scripts

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If automated testing scripts are made flexible to handle GUI changes, then adaptability to customization increases, but the complexity of script generation and management increases

Engineering Contradiction:
Improveadaptability to customizationVSAvoidscript generation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system introduces an intermediary image parsing layer that acts as a mediator between the application GUI and test scripts, automatically extracting GUI element information and translating it into test script parameters, thereby simplifying the generation process while maintaining flexibility

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The test script generation process is made dynamic by continuously parsing application images to detect GUI element changes, automatically updating test scripts to reflect current application state, enabling adaptability without manual intervention

Inventive Principle:
Principle #15Dynamics

3Extent of automation

If conventional functional testing tools are used, then testing of GUI elements can be automated, but the tools cannot handle highly customizable GUIs that change dynamically

Engineering Contradiction:
Improvetesting automationVSAvoidhandling of customizable GUIs
Core Design Contradiction:
Extent of automationVSAdaptability or versatility

Solution Approach 1:

The system replaces conventional mechanical recording-based automation with an intelligent image parsing approach that visually detects and identifies GUI elements, enabling automation to adapt to dynamic and customized interfaces without relying on static element hierarchies

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

Data Source

PatentUS8918760B2Test script generation for application image validation
Publication Date: 2014.12.23 SUGARCRM INC
  • US8918760B2 patent drawing
  • US8918760B2 patent drawing

AI summary

Embodiments of the present invention provide a method, system and computer program product for automated test script generation for application image validation. In an embodiment of the invention, a method of automated test script generation for application image validation is provided. The method can include parsing different modules of an existing image of a customized form of a base application to identify graphical user interface (GUI) elements in different screens of each of the different modules and cataloguing in a GUI element catalog, different GUI elements identified during parsing. The method also can include generating test scripts from the GUI element catalog. Finally, the method can include applying the generated test scripts to a new image of the customized form of the base application.