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
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.”
MethodMODE: automated neural network model debugging via state differential analysis and input selection
Ma, S., Liu, Y., Lee, W.-C., Zhang, X., & Grama, A. (2018) · Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3236024.3236082 · Cited by 211
“MODE can construct high quality training datasets that effectively and efficiently fix model bugs without introducing new bugs.”
BackgroundMachine learning applied to software testing: A systematic mapping study
Durelli, V. H. S., Durelli, R. S., Borges, S. S., Endo, A. T., Eler, M. M., Dias, D. R. C., & Guimaraes, M. P. (2019) · IEEE Transactions on Reliability · doi:10.1109/tr.2019.2892517 · Cited by 207
“In PS21 [64], Choi et al. tackled the problem of automatically generating a test suite for Android applications for which there is no existing model of the GUI.”
BackgroundMethodResultInfluentialThe TTT Algorithm: A Redundancy-Free Approach to Active Automata Learning
Isberner, M., Howar, F., & Steffen, B. (2014) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-11164-3_26 · Cited by 192
“This is well-justified by existing reports on practical applications of automata learning, which usually mention the time required for either symbol executions [8], system resets [9], or the space taken up by the observation table data structure [4] as bottlenecks.”
BackgroundICE: A Robust Framework for Learning Invariants
Garg, P., Löding, C., Madhusudan, P., & Neider, D. (2014) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-08867-9_5 · Cited by 186
“In addition, learning has been applied towards inductive program synthesis [49, 50] and model extraction and testing of software [51, 52].”
MethodReducing combinatorics in GUI testing of android applications
Mirzaei, N., Garcia, J., Bagheri, H., Sadeghi, A., & Malek, S. (2016) · Proceedings of the 38th International Conference on Software Engineering · doi:10.1145/2884781.2884853 · Cited by 158
“We also attempted to run SwiftHand [14].”
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.