Automated Classification, Root Cause Analysis, and Repair Recommendations for Failed Mobile Testing by Specialized LLM
Chun Li, Fei Wang, Minxue Pan, Zhong Li, Mengliang Zeng, Bin Zhang, Xuejiao Yu, Boyun Wang,
Key points
From the paper's conclusion- Furthermore, during a month-long deployment within a global company’s testing system, AnaDroid demonstrated its practical utility by successfully providing root cause and repair recommendations for 78% and 81% of the 11,304 failed tests, respectively.
Abstract
Engineers utilize test scripts to conduct testing on mobile applications to ensure software reliability. In industrial settings, failures in mobile application testing stem not only from faults in the program or scripts but also from other aspects, such as the testing environment, making it challenging to apply existing automated analysis methods in such settings. Furthermore, mobile testing in industrial contexts generates a large volume of artifacts, such as screenshots and logs, and involves diverse device models, varied test environments, and complex functionalities. All these factors make the manual analysis of failed mobile tests a process that is typically time-consuming, costly, and labor-intensive. Large language models (LLMs) with strong logical reasoning capabilities offer a novel perspective for automated analysis of failed mobile tests. However, due to their limited knowledge of mobile testing, general LLMs can only achieve sub-optimal effectiveness in these tasks. To address these challenges, we propose AnaDroid, a novel LLM training framework specifically tailored for analyzing failed mobile tests. AnaDroid performs feature preprocessing for failed mobile tests and trains the large language model through two novel, tailored training procedures. Specifically, AnaDroid first leverages bidirectional pre-training to instill the domain-specific knowledge and reasoning capabilities required for failed test analysis into the model. AnaDroid further employs preference optimization to enhance the model's capacity to capture critical information within the input context, thereby further improving its analytical effectiveness. Through extensive evaluations across six open-source LLMs of diverse architectures and scales on a large-scale industrial dataset of 284k failed mobile testing scripts, AnaDroid outperformed all four baselines across three analysis tasks. Furthermore, during a month-long deployment within a global company’s testing system, AnaDroid demonstrated its practical utility by successfully providing root cause and repair recommendations for 78% and 81% of the 11,304 failed tests, respectively.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- GraphDroid: Asynchronous LLM-Based Mobile App GUI Testing via History-Aware Exploration and Hybrid Intent FulfillmentarXiv · 2026
- Bridging User Feedback and System Diagnosis: Reproducing Mobile Performance Issues from ReviewsProceedings of the ACM on Software Engineering · 2026
- How Far Can LLMs Go in Generating Android Lint Checks from Natural Language?arXiv · 2026
- Automated Program Repair for UI-Centric Android Bugs: How Far Are We?Proceedings of the ACM on Software Engineering · 2026
- Can LLM Agents Learn to Test? Maintaining Scoped Experience as Testing Evidence for Mobile GUI TestingarXiv · 2026
- TreeMind : Automatically Reproducing Android Bug Reports via LLM-empowered Monte Carlo Tree SearchACM Transactions on Software Engineering and Methodology · 2026