Guided Bug Crush: Assist Manual GUI Testing of Android Apps via Hint Moves

Zhe Liu, Chunyang Chen, Junjie Wang, Yuekai Huang, Jun Hu, Qing Wang

Introduction

Manual GUI testing remains a cornerstone of mobile application quality assurance. While automated tools excel at scale, they often fail to navigate deep UI hierarchies or identify subtle usability and accessibility issues. However, human testers are not infallible; they frequently suffer from "exploration blindness," where they lose track of visited states, repeat actions unnecessarily, and miss hidden functionalities. A motivational study conducted by the authors revealed that even professional testers often cover only about 57% of an app's activities while remaining overconfident in their thoroughness. To bridge this gap, researchers developed NaviDroid, a tool that provides real-time, in-app visual guidance to maximize exploration efficiency.

The NaviDroid Framework

NaviDroid operates as an interactive testing assistant that guides users through an application using a three-stage process: extraction, planning, and guidance.

State Transition Graph (STG) Extraction

First, NaviDroid constructs a comprehensive map of the application's states and transitions. It utilizes a hybrid approach combining static analysis (parsing Abstract Syntax Trees and manifest files) with dynamic exploration (using automated bots to discover runtime UI elements). To manage the complexity of modern apps, NaviDroid employs context-aware state merging, which prevents "state explosion" by grouping near-identical screens based on their GUI hierarchy and navigational context.

NaviDroid extracts a State Transition Graph (STG) to track visited states and identify unexplored areas of the application.

Path Planning and Visual Guidance

Once the STG is established, NaviDroid uses a dynamic programming (DP) algorithm integrated with Floyd’s shortest-path algorithm to calculate an optimal exploration route. This route is designed to visit every known state while minimizing redundant steps.

The core innovation of NaviDroid is its "hint move" system, inspired by games like Candy Crush. Using Android's WindowManager service, the tool overlays a visible bounding box and interaction icons over the specific UI component the tester should engage with next. This reduces the cognitive load on the tester, allowing them to focus on identifying bugs rather than navigating the interface.

The NaviDroid interface provides sequential visual hints (red boxes and hand icons) to guide the tester through an optimal exploration path.

Evaluation and Key Results

The effectiveness of NaviDroid was evaluated using a dataset of 85 open-source Android apps and a controlled user study involving 32 professional testers.

  • Algorithmic Superiority: In automated benchmarks, NaviDroid achieved a median activity coverage of 74% and state coverage of 81%, significantly outperforming standard automated baselines like Droidbot and Monkey. Its path planning reduced exploration steps by up to 42% compared to traditional search methods.
  • Human Performance Boost: Testers using NaviDroid achieved 62% higher state coverage and discovered 146% more bugs than the control group.
  • Efficiency Gains: Despite the increased coverage and bug discovery, the NaviDroid group completed their tasks 33% faster (averaging 5.24 minutes vs. 6.98 minutes per app), primarily by eliminating repetitive navigational loops.

Conclusion and Future Directions

NaviDroid demonstrates that real-time visual guidance can transform manual GUI testing from a tedious, error-prone task into a highly efficient process. By forcing testers to interact with non-standard or hidden UI elements, the tool uncovers bugs that would otherwise remain hidden. Future work aims to expand NaviDroid’s capabilities to support complex gestures (like multi-touch swipes) and explore its potential as an accessibility tool to help general users navigate complex or poorly designed applications.

Summary updated

BibTeX
@inproceedings{liu2022guided,
  author = {Zhe Liu and Chunyang Chen and Junjie Wang and Yuekai Huang and Jun Hu and Qing Wang},
  title = {{Guided Bug Crush: Assist Manual GUI Testing of Android Apps via Hint Moves}},
  booktitle = {CHI},
  year = {2022},
  doi = {10.1145/3491102.3501903},
}
Figure