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.
| Original language | English |
|---|---|
| Title of host publication | Proceedings - 2021 IEEE 14th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021 |
| Publisher | Institute of Electrical and Electronics Engineers Inc. |
| Pages | 138-145 |
| Number of pages | 8 |
| ISBN (Electronic) | 9781665444569 |
| DOIs | |
| Publication status | Published - Apr 2021 |
| Externally published | Yes |
| Event | 14th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021 - Virtual, Porto de Galinhas, Brazil Duration: 12 Apr 2021 → 16 Apr 2021 |
Publication series
| Name | Proceedings - 2021 IEEE 14th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021 |
|---|
Conference
| Conference | 14th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021 |
|---|---|
| Country/Territory | Brazil |
| City | Virtual, Porto de Galinhas |
| Period | 12/04/21 → 16/04/21 |
UN SDGs
This output contributes to the following UN Sustainable Development Goals (SDGs)
-
SDG 9 Industry, Innovation, and Infrastructure
Keywords
- Android
- Control Flow Graph
- Exerciser Monkey
- Test Generation
Fingerprint
Dive into the research topics of 'Improving mobile user interface testing with model driven monkey search'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver