Paladin: Automated generation of reproducible test cases for android apps

Yun Ma, Yangyang Huang, Ziniu Hu, Xusheng Xiao, Xuanzhe Liu

Research output: Chapter in Book/Report/Conference proceedingConference contribution

19 Scopus citations

Abstract

Automated-test-generation tools generate test cases to enable dynamic analysis of Android apps, such as functional testing. These tools build a GUI model to describe the app states during the app execution, and generate a script that performs actions on UI widgets to form a test case. However, when the test cases are re-executed, the apps under analysis often do not behave consistently. The major reasons for such limited reproducibility are due to (1) backend-service dependencies that cause non-determinism in app behaviors and (2) the severe fragmentation of Android platform (i.e., the alarming number of different Android OS versions in vendor-customized devices). To address these challenges, we design and implement Paladin, a novel system that generates reproducible test cases for Android apps. The key insight of Paladin is to provide a GUI model that leverages the structure of the GUI view tree to identify equivalent app states, since the structure can tolerate the changes on the UI contents for an app behavior performed in different test executions. Based on the model, Paladin can search the view tree to locate the desired UI widgets to trigger events and drive the app exploration to reach the desired app states, making the test cases reproducible. Evaluation results on real apps show that Paladin could reach a much higher reproduction ratio than the state-of-the-art tools when the generated test cases are re-executed across different device configurations. In addition, benefiting from the reproducible capability, Paladin is able to cover more app behaviors compared with the existing tools.

Original languageEnglish (US)
Title of host publicationHotMobile 2019 - Proceedings of the 20th International Workshop on Mobile Computing Systems and Applications
PublisherAssociation for Computing Machinery, Inc
Pages99-104
Number of pages6
ISBN (Electronic)9781450362733
DOIs
StatePublished - Feb 22 2019
Externally publishedYes
Event20th International Workshop on Mobile Computing Systems and Applications, HotMobile 2019 - Santa Cruz, United States
Duration: Feb 27 2019Feb 28 2019

Publication series

NameHotMobile 2019 - Proceedings of the 20th International Workshop on Mobile Computing Systems and Applications

Conference

Conference20th International Workshop on Mobile Computing Systems and Applications, HotMobile 2019
Country/TerritoryUnited States
CitySanta Cruz
Period2/27/192/28/19

Keywords

  • Android app
  • Automated test generation
  • Reproducible

ASJC Scopus subject areas

  • Computer Networks and Communications
  • Computer Science Applications

Fingerprint

Dive into the research topics of 'Paladin: Automated generation of reproducible test cases for android apps'. Together they form a unique fingerprint.

Cite this