Guided GUI testing of android apps with minimal restart and approximate learning
Open accessThe DOI matches its Crossref record; 26 of the 26 references it cites were found in a registry or an index.
Abstract
Smartphones and tablets with rich graphical user interfaces (GUI) are becoming increasingly popular. Hundreds of thousands of specialized applications, called apps, are available for such mobile platforms. Manual testing is the most popular technique for testing graphical user interfaces of such apps. Manual testing is often tedious and error-prone. In this paper, we propose an automated technique, called Swift-Hand, for generating sequences of test inputs for Android apps. The technique uses machine learning to learn a model of the app during testing, uses the learned model to generate user inputs that visit unexplored states of the app, and uses the execution of the app on the generated inputs to refine the model. A key feature of the testing algorithm is that it avoids restarting the app, which is a significantly more expensive operation than executing the app on a sequence of inputs. An important insight behind our testing algorithm is that we do not need to learn a precise model of an app, which is often computationally intensive, if our goal is to simply guide test execution into unexplored parts of the state space. We have implemented our testing algorithm in a publicly available tool for Android apps written in Java. Our experimental results show that we can achieve significantly better coverage than traditional random testing and L*-based testing in a given time budget. Our algorithm also reaches peak coverage faster than both random and L*-based testing.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Learning regular sets from queries and counterexamples
Angluin, D. (1987) · Information and Computation · doi:10.1016/0890-5401(87)90052-6 · Cited by 2,114
DART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · ACM SIGPLAN Notices · doi:10.1145/1064978.1065036 · Cited by 2,067
Self-citationDART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · Proceedings of the 2005 ACM SIGPLAN conference on Programming language design and implementation · doi:10.1145/1065010.1065036 · Cited by 1,570
Self-citationDynodroid: an input generation system for Android apps
Machiry, A., Tahiliani, R., & Naik, M. (2013) · Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering · doi:10.1145/2491411.2491450 · Cited by 701
Inference of Reversible Languages
Angluin, D. (1982) · Journal of the ACM · doi:10.1145/322326.322334 · Cited by 526
Using GUI ripping for automated testing of Android applications
Amalfitano, D., Fasolino, A. R., Tramontana, P., De Carmine, S., & Memon, A. M. (2012) · Proceedings of the 27th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/2351676.2351717 · Cited by 514
Automated concolic testing of smartphone apps
Anand, S., Naik, M., Harrold, M. J., & Yang, H. (2012) · Proceedings of the ACM SIGSOFT 20th International Symposium on the Foundations of Software Engineering · doi:10.1145/2393596.2393666 · Cited by 401
Learning Assumptions for Compositional Verification
Cobleigh, J. M., Giannakopoulou, D., & PĂsĂreanu, C. S. (2003) · Lecture Notes in Computer Science · doi:10.1007/3-540-36577-x_24 · Cited by 399
Series in Machine Perception and Artificial Intelligence
(2012) · Series in machine perception and artificial intelligence · doi:10.1142/smpai · Cited by 365
Testing Web applications by modeling with FSMs
Andrews, A. A., Offutt, J., & Alexander, R. T. (2005) · Software & Systems Modeling · doi:10.1007/s10270-004-0077-7 · Cited by 338
Lang, K. J., Pearlmutter, B. A., & Price, R. A. (1998) · Lecture Notes in Computer Science · doi:10.1007/bfb0054059 · Cited by 334
AppsPlayground: automatic security analysis of smartphone applications
Rastogi, V., Chen, Y., & Enck, W. (2013) · Proceedings of the third ACM conference on Data and application security and privacy · doi:10.1145/2435349.2435379 · Cited by 322
Synthesis of interface specifications for Java classes
Alur, R., Černý, P., Madhusudan, P., & Nam, W. (2005) · Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1040305.1040314 · Cited by 316
A Grey-Box Approach for Automated GUI-Model Generation of Mobile Applications
Yang, W., Prasad, M. R., & Xie, T. (2013) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-37057-1_19 · Cited by 313
Crawling Ajax-Based Web Applications through Dynamic Analysis of User Interface State Changes
Mesbah, A., van Deursen, A., & Lenselink, S. (2012) · ACM Transactions on the Web · doi:10.1145/2109205.2109208 · Cited by 296
An event‐flow model of GUI‐based applications for testing
Memon, A. M. (2007) · Software Testing, Verification and Reliability · doi:10.1002/stvr.364 · Cited by 232
Finite state testing and analysis of graphical user interfaces
Belli, F. (2005) · Proceedings 12th International Symposium on Software Reliability Engineering · doi:10.1109/issre.2001.989456 · Cited by 171
Java Bytecode Verification: Algorithms and Formalizations
Leroy, X. (2003) · Journal of Automated Reasoning · doi:10.1023/a:1025055424017 · Cited by 150
Testing android apps through symbolic execution
Mirzaei, N., Malek, S., Păsăreanu, C. S., Esfahani, N., & Mahmood, R. (2012) · ACM SIGSOFT Software Engineering Notes · doi:10.1145/2382756.2382798 · Cited by 143
Mutually Enhancing Test Generation and Specification Inference
Xie, T., & Notkin, D. S. (2004) · Lecture notes in computer science · doi:10.1007/978-3-540-24617-6_5 · Cited by 72
Covering array sampling of input event sequences for automated gui testing
Yuan, X., Cohen, M. B., & Memon, A. M. (2007) · doi:10.1145/1321631.1321695 · Cited by 69
Iterative Refinement of Reverse-Engineered Models by Model-Based Testing
Walkinshaw, N., Derrick, J., & Guo, Q. (2009) · Lecture notes in computer science · doi:10.1007/978-3-642-05089-3_20 · Cited by 59
Increasing Functional Coverage by Inductive Testing: A Case Study
Walkinshaw, N., Bogdanov, K., Derrick, J., & París, J. (2010) · Lecture notes in computer science · doi:10.1007/978-3-642-16573-3_10 · Cited by 58
Iterative execution-feedback model-directed GUI testing
Yuan, X., & Memon, A. M. (2009) · Information and Software Technology · doi:10.1016/j.infsof.2009.11.009 · Cited by 39
AMC: An Adaptive Model Checker
Groce, A., Peled, D., & Yannakakis, M. (2002) · Lecture notes in computer science · doi:10.1007/3-540-45657-0_44 · Cited by 18
Cited by
Sapienz: multi-objective automated testing for Android applications
Mao, K., Harman, M., & Jia, Y. (2016) · Proceedings of the 25th International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931054 · Cited by 541
Automated Test Input Generation for Android: Are We There Yet? (E)
Choudhary, S. R., Gorla, A., & Orso, A. (2015) · 2015 30th IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2015.89 · Cited by 463
Guided, stochastic model-based GUI testing of Android apps
Su, T., Meng, G., Chen, Y., Wu, K., Yang, W., Yao, Y., Pu, G., Liu, Y., & Su, Z. (2017) · Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering · doi:10.1145/3106237.3106298 · Cited by 371
MobiGUITAR: Automated Model-Based Testing of Mobile Apps
Amalfitano, D., Fasolino, A. R., Tramontana, P., Ta, B. D., & Memon, A. M. (2015) · IEEE Software · doi:10.1109/ms.2014.55 · Cited by 278
Machine Learning-Based Prototyping of Graphical User Interfaces for Mobile Apps
Moran, K., Bernal-Cardenas, C., Curcio, M., Bonett, R., & Poshyvanyk, D. (2020) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2018.2844788 · Cited by 239
“For instance, if the target is a mobile app, input generation techniques relying on random-based [62], [63], [64], [65], [66], systematic [36], [67], [68], [69], [70], modelbased [37], [67], [69], [71], [72], [73], [74], or evolutionary [75], [76] strategies could be adopted for this task.”
Method
Metadata
- Authors
- Choi, W., Necula, G., & Sen, K.
- Venue
- Proceedings of the 2013 ACM SIGPLAN international conference on Object oriented programming systems languages & applications
- Publisher
- ACM
- Published
- 2013-10-29
- Pages
- 623-640
- OpenAlex
- W2091932246
- Cited by
- 315
- References
- 26
- FWCI
- 19.99
- Type
- conference paper
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.