A Context-Aware Approach for Dynamic GUI Testing of Android Applications.

Haowen Zhu,Xiaojun Ye,Xiaojun Zhang,Ke Shen
DOI: https://doi.org/10.1109/compsac.2015.77
2015-01-01
Abstract:In this paper, we propose an automatic GUI testing approach for Android applications. With the goal of exploring unexecuted event handlers of the application under test as quickly possible, our approach constructs and maintains a dynamic GUI model of the application at run time, which is based on extended non-deterministic labelled transition system that records the weight of transitions between GUI states. Extracting only part of the GUI features of the application under test, the model keeps itself simple enough to avoid state explosion and improves the test efficiency, but provides targeted guidance for testing event generation at the same time. A practical probabilistic search-based event selection algorithm is used to leverage information provided by the model, transform weight of transitions to priority of candidate events, and select the testing event to execute. The algorithm solves the non-deterministic problem introduced by the approximation of the model. Empirical evaluation on several real world applications shows that our approach can achieve high code coverage quickly and detect bugs efficiently.
What problem does this paper attempt to address?