A Context-aware Approach for Dynamic GUI Testing of Android Applications

被引:15
|
作者
Zhu, Haowen [1 ]
Ye, Xiaojun [1 ]
Zhang, Xiaojun [1 ]
Shen, Ke [1 ]
机构
[1] Tsinghua Univ, Sch Software, Beijing, Peoples R China
关键词
Mobile Applications; GUI Testing; Dynamic GUI Model; Probabilistic Event Selection;
D O I
10.1109/COMPSAC.2015.77
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:248 / 253
页数:6
相关论文
共 50 条
  • [41] Context-Aware Systems and Applications
    Emil Vassev
    Vangalur Alagar
    [J]. Mobile Networks and Applications, 2014, 19 : 583 - 584
  • [42] Context-Aware Systems and Applications
    Emil Vassev
    Son Vuong
    [J]. Mobile Networks and Applications, 2014, 19 : 210 - 211
  • [43] A model for context-aware applications
    Cheng, Ningning
    Chen, Shaxun
    Tao, Xianping
    Lu, Jian
    Chen, Guihai
    [J]. INTERNATIONAL JOURNAL OF PERVASIVE COMPUTING AND COMMUNICATIONS, 2008, 4 (04) : 428 - 439
  • [44] Context-Aware Systems and Applications
    Vassev, Emil
    Vuong, Son
    [J]. MOBILE NETWORKS & APPLICATIONS, 2014, 19 (02): : 210 - 211
  • [45] Automated GUI Testing for Android News Applications
    Chu, Edward T. -H.
    Lin, Jun-Yan
    [J]. 2018 INTERNATIONAL SYMPOSIUM ON COMPUTER, CONSUMER AND CONTROL (IS3C 2018), 2018, : 14 - 17
  • [46] EHBDroid: Beyond GUI Testing for Android Applications
    Song, Wei
    Qian, Xiangxing
    Huang, Jeff
    [J]. PROCEEDINGS OF THE 2017 32ND IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE'17), 2017, : 27 - 37
  • [47] Dynamic domain model for micro context-aware adaptation of applications
    Ponce, Victor
    Roy, Patrice
    Abdulrazak, Bessam
    [J]. 2016 INT IEEE CONFERENCES ON UBIQUITOUS INTELLIGENCE & COMPUTING, ADVANCED & TRUSTED COMPUTING, SCALABLE COMPUTING AND COMMUNICATIONS, CLOUD AND BIG DATA COMPUTING, INTERNET OF PEOPLE, AND SMART WORLD CONGRESS (UIC/ATC/SCALCOM/CBDCOM/IOP/SMARTWORLD), 2016, : 98 - 105
  • [48] A Technique for Parallel GUI Testing of Android Applications
    Tramontana, Porfirio
    Amatucci, Nicola
    Fasolino, Anna Rita
    [J]. TESTING SOFTWARE AND SYSTEMS, ICTSS 2020, 2020, 12543 : 169 - 185
  • [49] Reducing Combinatorics in GUI Testing of Android Applications
    Mirzaei, Nariman
    Garcia, Joshua
    Bagheri, Hamid
    Sadeghi, Alireza
    Malek, Sam
    [J]. 2016 IEEE/ACM 38TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2016, : 559 - 570
  • [50] Class Coverage GUI Testing for Android Applications
    Subramanian, Sathyanarayanan
    Singleton, Thomas
    El Ariss, Omar
    [J]. 2016 INTERNATIONAL CONFERENCE ON SYSTEM RELIABILITY AND SCIENCE (ICSRS 2016), 2016, : 84 - 89