Beyond Manual Modeling: Automating GUI Model Generation Using Design Documents
Open Access
- 27 October 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 91-103
Abstract
GUI models encapsulate the desired visual appearance and interactive behaviors of applications, facilitating various downstream tasks like model-based testing (MBT). Manually constructing high-quality GUI models is not only labor-intensive and costly but also prone to errors, particularly as applications evolve and require frequent model updates. Existing automated approaches for GUI model generation heavily rely on reverse engineering, where the models are abstractions of the code. As a result, they are not suitable for MBT to test functional issues because they are consistent with the code. Meanwhile, valuable development artifacts such as UI/UX design documents, which reflect design intentions, are often overlooked. In this paper, a novel approach named DemGen is proposed to seek a unique pathway for GUI model generation. Leveraging design documents, DemGen employs computer vision pre-trained models in conjunction with a rule-based correction mechanism to identify GUI elements and their intended behaviors as defined in those documents. Subsequently, the identified content is transformed into a formal GUI model adhering to the IFML modeling language. Our evaluation, conducted in collaboration with an industry partner on commercial applications, demonstrates the effectiveness and efficiency of DemGen in GUI element recognition and GUI model generation. Moreover, we conducted a comparative analysis of manual, automated, and hybrid modeling techniques, assessing the usefulness of generated models on MBT tasks.Keywords
Funding Information
- National Natural Science Foundation of China (62372227)
This publication has 33 references indexed in Scilit:
- Scene-Driven Exploration and GUI Modeling for Android Apps2023
- Practitioners’ best practices to Adopt, Use or Abandon Model-based Testing with Graphical models for Software-intensive SystemsEmpirical Software Engineering, 2022
- Model-based testing in practice: An experience report from the web applications domainJournal of Systems and Software, 2021
- Model-based test case generation and prioritization: a systematic literature reviewSoftware and Systems Modeling, 2021
- Effective testing of Android apps using extended IFML modelsJournal of Systems and Software, 2020
- Goal-Driven Exploration for Android Applications2019
- AMOGA: A Static-Dynamic Model Generation Strategy for Mobile Apps TestingIEEE Access, 2019
- Reverse Engineering Mobile Application User Interfaces with REMAUI (T)2015
- Static Window Transition Graphs for Android (T)2015
- Functional documents for computer systemsScience of Computer Programming, 1995