Title
Scripted GUI testing of Android open-source apps: evolution of test code and fragility causes
Abstract
Evidence from empirical studies suggests that mobile applications are not thoroughly tested as their desktop counterparts. In particular, GUI testing is generally limited. Like web-based applications, mobile apps suffer from GUI testing fragility, i.e., GUI test classes failing or needing interventions because of modifications in the AUT or in its GUI arrangement and definition. The objective of our study is to examine the diffusion of test classes created with a set of popular GUI Automation Frameworks for Android apps, the amount of changes required to keep test classes up to date, and the amount of code churn in existing test suites, along with the underlying modifications in the AUT that caused such modifications. We defined 12 metrics to characterize the evolution of test classes and test methods, and a taxonomy of 28 possible causes for changes to test code. To perform our experiments, we selected six widely used open-source GUI Automation Frameworks for Android apps. We evaluated the diffusion of the tools by mining the GitHub repositories featuring them, and computed our set of metrics on the projects. Applying the Grounded Theory technique, we then manually analyzed diff files of test classes written with the selected tools, to build from the ground up a taxonomy of causes for modifications of test code. We found that none of the considered GUI automation frameworks achieved a major diffusion among open-source Android projects available on GitHub. For projects featuring tests created with the selected frameworks, we found that test suites had to be modified often - specifically, about 8% of developers' modified LOCs belonged to test code and that a relevant portion (around 50% on average) of those modifications were induced by modifications in GUI definition and arrangement. Test code written with GUI automation fromeworks proved to need significant interventions during the lifespan of a typical Android open-source project. This can be seen as an obstacle for developers to adopt this kind of test automation. The evaluations and measurements of the maintainance needed by test code wrtitten with GUI automation frameworks, and the taxonomy of modification causes, can serve as a benchmark for developers, and the basis for the formulation of actionable guidelines and the development of automated tools to help mitigating the issue.
Year
DOI
Venue
2019
10.1007/s10664-019-09722-9
EMPIRICAL SOFTWARE ENGINEERING
Keywords
Field
DocType
Mobile development,Automated software testing,GUI testing,Software evolution,Software maintenance
Grounded theory,Data mining,Android (operating system),Software engineering,Computer science,Automation,Fragility,Software maintenance,Graphical user interface testing,Software evolution,Empirical research
Journal
Volume
Issue
ISSN
24.0
SP5.0
1382-3256
Citations 
PageRank 
References 
2
0.39
0
Authors
4
Name
Order
Citations
PageRank
Riccardo Coppola1426.54
Morisio, Maurizio21342119.37
M. Torchiano3216.23
Luca Ardito45810.83