Real-Time Test Script Generation via Dynamic Object Repository
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing methods for generating test automation scripts are inefficient, as they require manual updating of object repositories when application features change, leading to high maintenance efforts and delayed deployment due to the need for manual analysis and rerunning of failed scripts.
Innovation Solution
A method and system that scan properties of objects within a user interface, compare them with a pre-stored object library, identify updated properties, create unique XPATH references, and generate test automation scripts in real time to adapt to changes in application features.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If manual analysis and updating of object repositories is performed, then test automation scripts can be maintained, but time consumption and maintenance effort increase significantly
Solution Approach 1:
The system performs self-updating by automatically comparing current application controls with the object repository, detecting mismatches, and updating the object repository without human intervention. This eliminates the manual analysis and update process while maintaining script accuracy.
Solution Approach 2:
The system implements continuous feedback by monitoring control properties in real-time, comparing them against stored object repository data, and automatically triggering updates when discrepancies are detected. This feedback loop ensures test scripts remain synchronized with application changes.
2Productivity
If automated test suites are used, then testing efficiency improves, but maintenance effort increases due to non-recognition of existing controls post-enhancement
Solution Approach 1:
The object repository is transformed from a static data structure to a dynamic one that automatically adapts to application changes. The system continuously monitors control properties and updates the repository in real-time, enabling the automated test suite to remain effective without increased maintenance effort.
Solution Approach 2:
The automated test suite performs self-maintenance by automatically detecting when controls have changed or been added, updating the object repository accordingly, and continuing to execute without human intervention. This eliminates the maintenance burden while preserving testing efficiency.
3Reliability
If hundreds of test automation scripts are generated manually, then comprehensive testing coverage is achieved, but deployment time is delayed
Solution Approach 1:
The system performs preliminary actions by continuously updating the object repository in the background before test execution is needed. When application changes occur, the object repository is automatically updated ahead of time, so that when hundreds of test scripts need to run, they can execute immediately without waiting for manual updates, thus maintaining both coverage and speed.
Data Source
AI summary
A method and a system are described for generation of test automation scripts in real time. The method includes scanning a plurality of properties associated with objects within a user interface of an application under test. The method includes comparing the properties with a pre-stored object library. The pre-stored object library comprises metadata of pre-stored properties of the application under test. This includes identifying the updated properties associated with one or more objects from the plurality of objects based on the comparison of metadata of updated objects with the metadata of existing or pre-stored properties. This includes creating a unique XPATH reference for each of the one or more of objects based on the identified one or more updated properties. The method includes generating in real time one or more test automation scripts for each of the one or more of objects based on the unique XPATH reference.


