Automated Test Script Generation for Customized GUI Validation
Find Innovative SolutionsGenerate 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
Engineering 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
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
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
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
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
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
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
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
Data Source
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.

