跳到主要导航 跳到搜索 跳到主要内容

Guided, stochastic model-based GUI testing of android apps

  • Ting Su
  • , Guozhu Meng
  • , Yuting Chen
  • , Ke Wu
  • , Weiming Yang
  • , Yao Yao
  • , Geguang Pu*
  • , Yang Liu
  • , Zhendong Su
  • *此作品的通讯作者
  • Nanyang Technological University
  • Shanghai Jiao Tong University
  • East China Normal University
  • University of California at Davis

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Mobile apps are ubiquitous, operate in complex environments and are developed under the time-to-market pressure. Ensuring their correctness and reliability thus becomes an important challenge. This paper introduces Stoat, a novel guided approach to perform stochastic model-based testing on Android apps. Stoat operates in two phases: (1) Given an app as input, it uses dynamic analysis enhanced by a weighted UI exploration strategy and static analysis to reverse engineer a stochastic model of the app's GUI interactions; and (2) it adapts Gibbs sampling to iteratively mutate/refine the stochastic model and guides test generation from the mutated models toward achieving high code and model coverage and exhibiting diverse sequences. During testing, system-level events are randomly injected to further enhance the testing effectiveness. Stoat was evaluated on 93 open-source apps. The results show (1) the models produced by Stoat cover 17~31% more code than those by existing modeling tools; (2) Stoat detects 3X more unique crashes than two state-of-the-art testing tools, Monkey and Sapienz. Furthermore, Stoat tested 1661 most popular Google Play apps, and detected 2110 previously unknown and unique crashes. So far, 43 developers have responded that they are investigating our reports. 20 of reported crashes have been confirmed, and 8 already fixed.

源语言英语
主期刊名ESEC/FSE 2017 - Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering
编辑Andrea Zisman, Eric Bodden, Wilhelm Schafer, Arie van Deursen
出版商Association for Computing Machinery
245-256
页数12
ISBN(电子版)9781450351058
DOI
出版状态已出版 - 21 8月 2017
活动11th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering, ESEC/FSE 2017 - Paderborn, 德国
期限: 4 9月 20178 9月 2017

出版系列

姓名Proceedings of the ACM SIGSOFT Symposium on the Foundations of Software Engineering
Part F130154

会议

会议11th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering, ESEC/FSE 2017
国家/地区德国
Paderborn
时期4/09/178/09/17

指纹

探究 'Guided, stochastic model-based GUI testing of android apps' 的科研主题。它们共同构成独一无二的指纹。

引用此