GUIPilot: A Consistency-Based Mobile GUI Testing Approach for Detecting Application-Specific Bugs

Ruofan Liu, Xiwen Teoh, Yun Lin, Guanjie Chen, Ruofei Ren, Denys Poshyvanyk, Jin Song Dong

Introduction

In mobile application development, the definition of a "bug" extends beyond system crashes or memory leaks. Often, the most pervasive issues are "application-specific" bugs—discrepancies where the implemented user interface (UI) deviates from the original design mock-ups. These deviations, ranging from misplaced buttons to broken navigation flows, degrade user experience and brand consistency.

Traditionally, verifying that an implementation matches its design (e.g., Figma or Sketch mock-ups) has been a manual, labor-intensive process. Automated tools like the Graphical Violation Tool (GVT) attempted to solve this but were hampered by a reliance on local relative positions. In such systems, a single layout shift or missing widget often triggered a cascade of false positives. GUIPilot addresses these challenges by introducing a robust, consistency-based testing framework that leverages global alignment algorithms and Vision-Language Models (VLMs).

Methodology

GUIPilot employs a two-pronged approach to ensure both static and functional consistency between design and implementation.

1. Screen Inconsistency Detection

To detect layout deviations, GUIPilot moves away from fragile coordinate-based comparisons. The process involves:

  • Widget Detection and Extraction: The system utilizes a YOLO-v8 object detection model to identify UI components and Optical Character Recognition (OCR) to extract text content.
  • Global Alignment via LCS: Instead of comparing widgets in isolation, GUIPilot treats the screen as a sequence of widgets sorted by their spatial appearance (top-to-bottom, left-to-right). It applies a Longest Common Subsequence (LCS) algorithm to find the globally optimal alignment between the mock-up and the implementation. This dynamic programming approach ensures that if a widget is missing or shifted, the system recognizes the global structure rather than reporting every subsequent widget as an error.

2. Process Inconsistency Detection

Functional consistency ensures that the transitions between screens match the intended design logic. This is often difficult to automate because design instructions are frequently abstract (e.g., "Log in using the credentials provided").

  • VLM-Driven Action Completion: GUIPilot uses GPT-4o to interpret these abstract instructions and translate them into executable actions, such as specific clicks or text inputs.
  • Visual Prompting: To mitigate VLM "hallucinations" and improve accuracy, GUIPilot overlays screenshots with bounding boxes and unique IDs for interactable widgets. This constrains the VLM's reasoning to a valid action space, significantly increasing reliability.

Experimental Evaluation

The authors evaluated GUIPilot using a comprehensive dataset of 80 popular Android applications across various categories (Business, Finance, Social) and 160 manually labeled design mock-ups. Additionally, 1,392 screens were used to train the underlying YOLO-v8 detector.

Key Results

  • High Precision and Recall: In screen inconsistency detection, GUIPilot achieved 99.8% precision and 98.6% recall. This represents a massive improvement over the previous state-of-the-art (GVT), which it outperformed by 66.2% and 56.6%, respectively.
  • Robustness to Layout Shifts: While GVT’s precision plummeted to 28.3% when widgets were swapped, GUIPilot maintained a precision of 98.7%, demonstrating the effectiveness of the LCS-based alignment.
  • Process Accuracy: In tests involving 100 mutated navigation processes, GUIPilot successfully identified every injected inconsistency with zero errors.

Industrial Case Study

To test real-world utility, GUIPilot was deployed on a trading application with over 32 million users. The tool successfully detected 9 real application bugs, all of which were subsequently confirmed by the company’s domain experts. This highlights the framework's ability to operate at scale in complex, production-level environments.

Discussion and Future Work

While GUIPilot sets a new benchmark for GUI testing, certain limitations remain. The reliance on third-party VLM APIs introduces latency and operational costs. Future iterations may explore "distilling" smaller, specialized VLMs that can run locally to reduce these overheads. Furthermore, the system is dependent on the accuracy of the YOLO-v8 detector; improvements in object detection for complex UI elements (like dynamic charts) will further enhance performance.

Finally, the authors noted the common industry challenge of "mock-up drift," where designs are not updated as frequently as the code. Future research will focus on better version-control integration to ensure the testing suite remains synchronized with the evolving design language.

Summary updated

BibTeX
@article{liu2025guipilot,
  author = {Ruofan Liu and Xiwen Teoh and Yun Lin and Guanjie Chen and Ruofei Ren and Denys Poshyvanyk and Jin Song Dong},
  title = {{GUIPilot: A Consistency-Based Mobile GUI Testing Approach for Detecting Application-Specific Bugs}},
  journal = {Proc. ACM Softw. Eng.},
  year = {2025},
  doi = {10.1145/3728909},
}
Figure