Back to search

University of Waterloo

Ape+: A Faster Ape with Static Model Guided Exploration

Abstract

dc:description.abstract

Ape is the state-of-the-art Android GUI testing tool, which implements a dynamic model internally to guide the testing process. At the time of writing, Ape was one of the most effective Android testing tools. Ape’s interactions with Android devices partially rely on private APIs, which made it difficult to support newer Android versions. Aiming to solve this problem, we adopted Appium as the interaction layer. However, the introduction of Appium distorted Ape into a server-client structure, which brought a huge overhead and severely affected the efficiency. Besides, Ape naturally tries to test all widgets. Neverthe- less, in scenarios where an application only needs to be partially tested, such strategy limits the effectiveness due to the inability to prioritize activities of interest. In this study, we introduce Ape+, which boosts the efficiency of Ape but avoids using private Android APIs. We reconstruct Ape as a monolithic on-device testing tool by re- placing Appium, the communication layer between Ape and the device, with UiAutomator. We solved technical challenges, such as supporting drag function and fetching current ac- tivity names, and experiments show that efficiency improvements among the applications are between 10% to 40% compare to Ape with Appium. We also analyze different static analyses tools to find the one whose static model is informative enough to bring extra knowledge to Ape for activity prioritization. Using in- strumentation, we improve the accuracy of widget matching, which is an essential step to bridge the gap between the dynamic model and the static one and combine both synergis- tically. We also introduce a priority decay strategy to mitigate false information produced by static analysis, and a path finding algorithm to help Ape+ navigate between activities using both models. Our experiments show, for two selected applications with informative models, Ape+ is able to cover every activity 37% and 57% faster. We believe that Ape+ is a decent testbed with maintainability and extensibility for conducting research on automated Android GUI testing in the future.

Degree

thesis:*
Grantor dc:publisher
University of Waterloo
Year dc:date.issued
2022

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Cheng, Yaxin
Advisor dc:contributor.advisor
  • Chengnian, Sun

Subjects

dc:subject × 4

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
http://hdl.handle.net/10012/18556

Chain of custody

source
Harvested from
University of Waterloo
Base URL
dspacemainprd01.lib.uwaterloo.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Cheng, Yaxin. Ape+: A Faster Ape with Static Model Guided Exploration. University of Waterloo, 2022. http://hdl.handle.net/10012/18556