Improving Mobile User Interface Testing with Model Driven Monkey Search
Jordan Doyle, Takfarinas Saber, Paolo Arcaini, Anthony Ventresque
Abstract
Testing mobile applications often relies on tools, such as Exerciser Monkey for Android systems, that simulate user input. Exerciser Monkey, for example, generates random events (e.g., touches, gestures, navigational keys) that give developers a sense of what their application will do when deployed on real mobile phones with real users interacting with it. These tools, however, have no knowledge of the underlying applications' structures and only interact with them randomly or in a predefined manner (e.g., if developers designed scenarios, a labour-intensive task) -- making them slow and poor at finding bugs. In this paper, we propose a novel control flow structure able to represent the code of Android applications, including all the interactive elements. We show that our structure can increase the effectiveness (higher coverage) and efficiency (removing duplicate/redundant tests) of the Exerciser Monkey by giving it knowledge of the test environment. We compare the interface coverage achieved by the Exerciser Monkey with our new Monkey++ using a depth first search of our control flow structure and show that while the random nature of Exerciser Monkey creates slow test suites of poor coverage, the test suite created by a depth first search is one order of magnitude faster and achieves full coverage of the user interaction elements. We believe this research will lead to a more effective and efficient Exerciser Monkey, as well as better targeted search based techniques for automated Android testing.
Create a lesson
Related papers
Can LLMs Test Terminal User Interfaces?
Shared title terminology · Chao Peng, Ruida Hu, Ajitha Rajan et al.
Uncovering Business Logic Bugs via Semantics-Driven Unit Test Generation
Shared title terminology · Chen Yang, Junjie Chen
Algorithm-driven Development: A Proactive Approach to Improving Software Quality and Reducing Defects
Shared title terminology · Philippe Jawish, Pierre Evrard, Alexandre Lemerle et al.
Enhancing User-Feedback Driven Requirements Prioritization
Shared title terminology · Aurek Chattopadhyay, Nan Niu, Hui Liu et al.
Simulation-Based Testing of RCM-Constrained Robotic Software via Task Manifolds
Shared title terminology · Zhenyu Jiang, Yanlin Li, Rongjie Yan et al.
Testing Settlement Flags after Late Evidence and Process Restart
Shared title terminology · Zengjian Liu, Tommy He, ELE Zhao et al.