ChimpCheck: property-based randomized test generation for interactive apps
Authors:
Open Access
- 25 October 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 58-77
Abstract
We consider the problem of generating relevant execution traces to test rich interactive applications. Rich interactive applications, such as apps on mobile platforms, are complex stateful and often distributed systems where sufficiently exercising the app with user-interaction (UI) event sequences to expose defects is both hard and time-consuming. In particular, there is a fundamental tension between brute-force random UI exercising tools, which are fully-automated but offer low relevance, and UI test scripts, which are manual but offer high relevance. In this paper, we consider a middle way---enabling a seamless fusion of scripted and randomized UI testing. This fusion is prototyped in a testing tool called ChimpCheck for programming, generating, and executing property-based randomized test cases for Android apps. Our approach realizes this fusion by offering a high-level, embedded domain-specific language for defining custom generators of simulated user-interaction event sequences. What follows is a combinator library built on industrial strength frameworks for property-based testing (ScalaCheck) and Android testing (Android JUnit and Espresso) to implement property-based randomized testing for Android development. Driven by real, reported issues in open source Android apps, we show, through case studies, how ChimpCheck enables expressing effective testing patterns in a compact manner.Comment: 20 pages, 21 figures, Symposium on New ideas, New Paradigms, and Reflections on Programming and Software (Onward!2017Keywords
All Related Versions
Funding Information
- DARPA (FA8750-14-2-0263)
- National Science Foundation (CCF-1055066)
This publication has 10 references indexed in Scilit:
- Sapienz: multi-objective automated testing for Android applications2016
- Systematic execution of Android test suites in adverse conditions2015
- EvoDroid: segmented evolutionary testing of Android apps2014
- PUMA2014
- MobiGUITAR: Automated Model-Based Testing of Mobile AppsIEEE Software, 2014
- Dynodroid: an input generation system for Android apps2013
- TestFul: An Evolutionary Test Approach for Java2010
- An event‐flow model of GUI‐based applications for testingSoftware Testing, Verification and Reliability, 2007
- QuickCheck2000
- Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints1977