kirancodes.me
To Proof Maintenance & Beyond!

LLMDroid: Enhancing Automated Mobile App GUI Testing Coverage with Large Language Model Guidance

Chenxu Wang, Tianming Liu, Yanjie Zhao, Minghui Yang, Haoyu Wang

Abstract

With the rapid development of Large Language Models (LLMs), their integration into automated mobile GUI testing has emerged as a promising research direction. However, existing LLM-based testing approaches face significant challenges, including time inefficiency and high costs due to constant LLM querying. To address these issues, this paper introduces LLMD roid , a novel testing framework designed to enhance existing automated mobile GUI testing tools by leveraging LLMs more efficiently. The workflow of LLMD roid comprises two main stages: Autonomous Exploration and LLM Guidance. During Autonomous Exploration, LLMD roid utilizes existing testing tools while leveraging LLMs to summarize explored pages. When code coverage growth slows, it transitions to LLM Guidance to strategically direct testing towards unexplored functionalities. This approach minimizes LLM interactions while maximizing their impact on test coverage. We applied LLMD roid to three popular open-source Android testing tools and evaluated it on 14 top-listed apps from Google Play. Results demonstrate an average increase of 26.16 % in code coverage and 29.31 % in activity coverage. Furthermore, our evaluation under different LLMs reveals that LLMD roid outperform existing step-wise approaches with significant cost efficiency, achieving optimal performance at $ 0.49 per hour using GPT-4o among tested models, with a cost-effective alternative achieving 94 % of this performance at just $ 0.03 per hour. These findings highlight LLMD roid ’s effectiveness in enhancing automated mobile app testing and its potential for widespread adoption.

BibTeX
@article{Wang-al:FSE25,
  author    = {Chenxu Wang and
               Tianming Liu and
               Yanjie Zhao and
               Minghui Yang and
               Haoyu Wang},
  title     = {{LLMDroid:} Enhancing Automated Mobile App {GUI} Testing Coverage with Large Language Model Guidance},
  journal   = {{PACMSE}},
  volume    = {2},
  number    = {{FSE}},
  pages     = {1001--1022},
  year      = {2025},
}

Related papers