A Fast Crash Reproduction Method for Android Applications Based on Widget Hierarchy Graphs
Open Access
- 22 January 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Internet of Things Journal
- Vol. 11 (8) , 13217-13230
Abstract
To improve the efficiency of fixing bugs, mobile application developers must reproduce bugs reported by testers or users as quickly as possible. In some cases, automated testing tools can help developers reproduce crashes. However, these tools were not designed for reproducing bug reports. They are not efficient at reproducing crashes. To focus testing resources on suspicious widgets, we propose CrPDroid, a fast crash reproduction method for Android applications based on widget hierarchy graphs. First, it builds a widget hierarchy graph by using the project file of the application under test; then, it locates suspicious widgets by analyzing the bug report and the project file of the application under test and calculates the fitness of each widget according to the widget hierarchy graph; finally, it uses the fitness of widgets to guide automated testing to reproduce crashes quickly. To evaluate the effectiveness of CrPDroid, experiments are conducted on real Android application bug reports, and the crash reproduction tool ReCDroid, ReproBot and automated testing tools APE and PUMA are compared with CrPDroid. The experimental results show that CrPDroid successfully reproduces 15 bug reports that cause Android app crashes. In addition, compared with APE, PUMA, ReCDroid, and ReproBot, the average time for CrPDroid to reproduce crashes decreased by 76.87%, 81.94%, 95.58%, and 76.55%, and the total number of operations on suspicious widgets in the same period of testing time increased by 44.07%, 87.57%, 88.70%, and 68.93% on average, respectively.Keywords
Funding Information
- Jiangsu Provincial Frontier Leading Technology Fundamental Research Project (BK20202001)
- Open Research Fund of Key Laboratory of Safety-Critical Software Fund (NJ2023031)
- National Natural Science Foundation of China (61702041)
- Beijing Information Science and Technology University “Qin-Xin Talent” Cultivation Project (QXTCP C201906)
This publication has 27 references indexed in Scilit:
- Context-aware Bug Reproduction for Mobile Apps2023
- Humanoid: A Deep Learning-Based Approach to Automated Black-box Android App Testing2019
- A Comprehensive Survey on Internet of Things (IoT) Toward 5G Wireless SystemsIEEE Internet of Things Journal, 2019
- Practical GUI Testing of Android Applications Via Model Abstraction and Refinement2019
- ReCDroid: Automatically Reproducing Android Application Crashes from Bug Reports2019
- EveDroid: Event-Aware Android Malware Detection Against Model Degrading for IoT DevicesIEEE Internet of Things Journal, 2019
- QBE: QLearning-Based Exploration of Android Applications2018
- Automatically Discovering, Reporting and Reproducing Android Application Crashes2016
- Automated Test Input Generation for Android: Are We There Yet? (E)2015
- Natural Language Processing and Text Mining2007