Improving mobile user interface testing with model driven monkey search

Jordan Doyle, Takfarinas Saber, Paolo Arcaini, Anthony Ventresque

Research output: Chapter in Book or Conference Publication/ProceedingConference Publicationpeer-review

7 Citations (Scopus)

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 languageEnglish
Title of host publicationProceedings - 2021 IEEE 14th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages138-145
Number of pages8
ISBN (Electronic)9781665444569
DOIs
Publication statusPublished - Apr 2021
Externally publishedYes
Event14th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021 - Virtual, Porto de Galinhas, Brazil
Duration: 12 Apr 202116 Apr 2021

Publication series

NameProceedings - 2021 IEEE 14th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021

Conference

Conference14th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2021
Country/TerritoryBrazil
CityVirtual, Porto de Galinhas
Period12/04/2116/04/21

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