Towards Benchmarking GUI Compatibility Testing on Mobile Applications

Jiaming Ye, Mulong Xie, Siyuan Chen, Fuyuan Zhang, Lei Ma, Zhenchang Xing, Jianjun ZhaoarXiv 2022 · DOI

Introduction

The Android ecosystem is characterized by extreme fragmentation, with over 71% of the global market share distributed across thousands of hardware configurations, screen sizes, and OS versions. This diversity creates a significant challenge for mobile developers: GUI compatibility testing. A UI element that renders perfectly on a Google Pixel might be obscured by a camera notch on a Huawei device or misaligned on a Samsung Edge display.

Currently, while functional testing is largely automated, compatibility testing remains a manual, labor-intensive bottleneck. This research introduces a standardized benchmark to evaluate the effectiveness of automated tools in replaying test cases across different environments, revealing a significant gap between current academic solutions and industrial requirements.

Methodology: Intrusive vs. Non-Intrusive Testing

The researchers categorize existing compatibility testing tools into two distinct approaches:

  1. Intrusive Methods (e.g., MAPIT, LIRAT): These tools utilize the Android Debug Bridge (ADB) to access internal metadata, such as widget coordinates, resource IDs, and XML paths. They rely on these technical attributes to identify and interact with UI components.
  2. Non-intrusive Methods (e.g., Roscript): These methods attempt to simulate human interaction using computer vision. They record a video of a human tester and employ image matching techniques (such as OpenCV template matching) to locate and interact with buttons on target devices.
Comparison of Intrusive and Non-intrusive testing workflows.

To evaluate these approaches, the authors re-implemented Roscript and compared it against MAPIT using a custom benchmark consisting of 30 real-world test cases across 8 popular Android applications, including Booking, AirBNB, Chrome, and Gmail.

Key Results and Performance Analysis

The benchmark results indicate that automated GUI compatibility testing is still in its infancy. Neither tool achieved a success rate exceeding 60% in replaying test cases, highlighting a massive effectiveness gap.

Performance comparison between MAPIT and Roscript across benchmark apps.

As shown in the performance data, there is no clear winner between the two methodologies. MAPIT generally performed better on Travel and Email applications, while Roscript showed an advantage in Photo and Browser categories. This suggests that the effectiveness of a tool is highly dependent on the specific UI complexity and structure of the application under test.

Why Tools Fail

The study identifies several critical failure points:

  • Interactable Flags: Intrusive tools like MAPIT often fail when developers neglect to mark widgets as "interactable" in the code, causing the tool to ignore valid buttons.
  • Path Ambiguity: Many UI elements share identical internal paths, leading intrusive tools to select the wrong widget.
  • Visual Fragility: Non-intrusive tools are sensitive to environmental factors during recording (e.g., background colors) and struggle with precision when UI elements shift slightly between different screen resolutions.

Analysis of MAPIT's failures revealed that 75.4% were due to incorrect localization (finding the wrong widget), while 24.5% resulted from failures in filtering out non-interactable elements.

Conclusion and Future Work

This research serves as a wake-up call for the mobile testing community. The "effectiveness gap" between current tools and industrial needs is substantial. Future work will focus on expanding the benchmark to include more diverse app categories and exploring more robust GUI detection techniques, such as deep learning-based models, to move beyond the limitations of simple template matching and metadata extraction.

Summary updated

BibTeX
@misc{ye2022towards,
  author = {Jiaming Ye and Mulong Xie and Siyuan Chen and Fuyuan Zhang and Lei Ma and Zhenchang Xing and Jianjun Zhao},
  title = {{Towards Benchmarking GUI Compatibility Testing on Mobile Applications}},
  year = {2022},
  eprint = {2212.13424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.13424},
}
Figure