[Paper Review] A Deep Learning based Approach to Automated Android App Testing.
This paper proposes Humanoid, a deep learning-based approach that learns human-like interaction patterns from UI traces to generate effective test inputs for Android apps. By leveraging visual UI features and state transitions, Humanoid achieves higher test coverage faster than state-of-the-art random or brute-force generators.
Automated input generators are widely used for large-scale dynamic analysis and testing of mobile apps. Such input generators must constantly choose which UI element to interact with and how to interact with it, in order to achieve high coverage with a limited time budget. Currently, most input generators adopt pseudo-random or brute-force searching strategies, which may take very long to find the correct combination of inputs that can drive the app into new and important states. In this paper, we propose Humanoid, a deep learning-based approach to automated Android app testing. Our insight is that if we can learn from human-generated interaction traces, it is possible to generate human-like test inputs based on the visual information in the current UI state and the latest state transitions. We design and implement a deep neural network model to learn how end-users would interact with an app (specifically, which UI elements to interact with and how), and show that we can successfully generate human-like inputs for any new UI based on the learned model. We then apply the model to automated testing of Android apps and demonstrate that it is able to reach higher coverage, and faster as well, than the state-of-the-art test input generators.
Motivation & Objective
- To address the inefficiency of current pseudo-random or brute-force input generation strategies in Android app testing.
- To learn user interaction patterns from human-generated UI interaction traces for improved test input synthesis.
- To develop a model that predicts optimal UI interactions based on visual state and recent transitions.
- To evaluate whether the learned model can generalize to new UIs and improve test coverage and efficiency.
Proposed method
- Design a deep neural network that takes visual representations of the current UI and recent state transitions as input.
- Train the model on human interaction traces to predict which UI element to interact with and the type of interaction (e.g., click, type).
- Use visual embeddings from the UI to represent the current state, enabling generalization to unseen UI layouts.
- Leverage temporal dependencies in interaction sequences to model user behavior patterns over time.
- Apply the trained model to generate test inputs during automated testing of new Android apps.
- Evaluate performance using standard coverage metrics and execution time compared to baseline generators.
Experimental results
Research questions
- RQ1Can a deep learning model trained on human interaction traces effectively predict meaningful UI interactions in new Android app states?
- RQ2Does the model-generated test input strategy achieve higher code coverage than random or brute-force approaches?
- RQ3How does the model’s performance compare to state-of-the-art input generators in terms of coverage speed and completeness?
- RQ4To what extent can the model generalize to new UI layouts not seen during training?
Key findings
- Humanoid achieves significantly higher code coverage than existing input generators in the same time budget.
- The model reduces the time required to reach high coverage levels by learning efficient navigation patterns from human traces.
- The approach generalizes well to new UIs, demonstrating robustness across diverse app interfaces.
- The use of visual and sequential state information enables accurate prediction of user-like interactions without requiring app source code.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.