Using Model Checking to Generate Test Cases for Android Applications
Authors:
- Ana Rosario EspadaAEAna Rosario Espada
- María del Mar GallardoMGMaría del Mar Gallardo
- Alberto SalmerónASAlberto Salmerón
- Pedro MerinoPMPedro Merino
Preprint
Abstract
The behavior of mobile devices is highly non deterministic and barely predictable due to the interaction of the user with its applications. In consequence, analyzing the correctness of applications running on a smartphone involves dealing with the complexity of its environment. In this paper, we propose the use of model-based testing to describe the potential behaviors of users interacting with mobile applications. These behaviors are modeled by composing specially-designed state machines. These composed state machines can be exhaustively explored using a model checking tool to automatically generate all possible user interactions. Each generated trace model checker can be interpreted as a test case to drive a runtime analysis of actual applications. We have implemented a tool that follows the proposed methodology to analyze Android devices using the model checker Spin as the exhaustive generator of test cases.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- MobiGUITAR: Automated Model-Based Testing of Mobile AppsIEEE Software, 2014
- APSET, an Android aPplication SEcurity Testing tool for detecting intent-based vulnerabilitiesInternational Journal on Software Tools for Technology Transfer, 2014
- Model-Based Conformance Testing for Android2012
- Verification support for ARINC‐653‐based avionics softwareSoftware Testing, Verification and Reliability, 2011
- JPF-AWT: Model checking GUI applications2011
- Automating GUI testing for Android applications2011
- Experiences of System-Level Model-Based GUI Testing of an Android Application2011
- Checking the reliability of socket based communication softwareInternational Journal on Software Tools for Technology Transfer, 2009
- Combining test case generation and runtime verificationTheoretical Computer Science, 2005
- Analyzing interaction orderings with model checking2004