DinoDroid: Testing Android Apps Using Deep Q-Networks
Open Access
- 4 June 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 33 (5) , 1-24
Abstract
The large demand of mobile devices creates significant concerns about the quality of mobile applications (apps). Developers need to guarantee the quality of mobile apps before it is released to the market. There have been many approaches using different strategies to test the GUI of mobile apps. However, they still need improvement due to their limited effectiveness. In this article, we propose DinoDroid, an approach based on deep Q-networks to automate testing of Android apps. DinoDroid learns a behavior model from a set of existing apps and the learned model can be used to explore and generate tests for new apps. DinoDroid is able to capture the fine-grained details of GUI events (e.g., the content of GUI widgets) and use them as features that are fed into deep neural network, which acts as the agent to guide app exploration. DinoDroid automatically adapts the learned model during the exploration without the need of any modeling strategies or pre-defined rules. We conduct experiments on 64 open-source Android apps. The results showed that DinoDroid outperforms existing Android testing tools in terms of code coverage and bug detection.Keywords
All Related Versions
Funding Information
- NSF (CCF-2342355, CCF-1652149, CCF-2403617, CCF-2402103, and CCF-2246186)
This publication has 56 references indexed in Scilit:
- Improving high-impact bug report prediction with combination of interactive machine learning and active learningInformation and Software Technology, 2021
- Functional test generation from UI test scenarios using reinforcement learning for android applicationsSoftware Testing, Verification and Reliability, 2020
- Practical GUI Testing of Android Applications Via Model Abstraction and Refinement2019
- Predicting the Computational Cost of Deep Learning Models2018
- Deep Reinforcement Learning: A Brief SurveyIEEE Signal Processing Magazine, 2017
- CNN-RNN: A Unified Framework for Multi-label Image Classification2016
- Automatically Discovering, Reporting and Reproducing Android Application Crashes2016
- EventBreakACM SIGPLAN Notices, 2014
- Reinforcement learning versus heuristics for order acceptance on a single resourceJournal of Heuristics, 2006
- On the Theory of Dynamic ProgrammingProceedings of the National Academy of Sciences of the United States of America, 1952