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 条
  • [1] Context-Aware Android Applications Testing
    de Almeida, Diego Rodrigues
    Machado, Patricia D. L.
    Andrade, Wilkerson L.
    [J]. 34TH BRAZILIAN SYMPOSIUM ON SOFTWARE ENGINEERING, SBES 2020, 2020, : 283 - 292
  • [2] Testing tools for Android context-aware applications: a systematic mapping
    Almeida, Diego R.
    Machado, Patrícia D. L.
    Andrade, Wilkerson L.
    [J]. Journal of the Brazilian Computer Society, 2019, 25 (01)
  • [3] Techniques for Dynamic Deployment of Modules in Context-Aware Android Applications
    Maly, Filip
    Kriz, Pavel
    [J]. 2015 16TH IEEE INTERNATIONAL SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE AND INFORMATICS (CINTI), 2015, : 107 - 111
  • [4] Context management for supporting context-aware android applications development
    Computer Science Department, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah, Saudi Arabia
    不详
    [J]. Int. J. Interact. Mob. Technol, 4 (186-201):
  • [5] Automated Testing of Context-Aware Applications
    Toenjes, Ralf
    Reetz, Eike Steffen
    Fischer, Marten
    Kuemper, Daniel
    [J]. 2015 IEEE 82ND VEHICULAR TECHNOLOGY CONFERENCE (VTC FALL), 2015,
  • [6] CAreDroid: Adaptation Framework for Android Context-Aware Applications
    Elmalaki, Salma
    Wanner, Lucas
    Srivastava, Mani
    [J]. MOBICOM '15: PROCEEDINGS OF THE 21ST ANNUAL INTERNATIONAL CONFERENCE ON MOBILE COMPUTING AND NETWORKING, 2015, : 386 - 399
  • [7] CAreDroid: Adaptation Framework for Android Context-Aware Applications
    Elmalaki, Salma
    Wanner, Lucas
    Srivastava, Mani
    [J]. GETMOBILE-MOBILE COMPUTING & COMMUNICATIONS REVIEW, 2016, 20 (02) : 35 - 38
  • [8] An Improved Model for GUI Design of mHealth Context-Aware Applications
    Quinde, Mario
    Khan, Nawaz
    [J]. DESIGN, USER EXPERIENCE, AND USABILITY: DESIGNING INTERACTIONS, DUXU 2018, PT II, 2018, 10919 : 313 - 326
  • [9] Combinatorial Testing of Context Aware Android Applications
    Piparia, Shraddha
    Adamo, David
    Bryce, Renee
    Do, Hyunsook
    Bryant, Barrett
    [J]. PROCEEDINGS OF THE 2021 16TH CONFERENCE ON COMPUTER SCIENCE AND INTELLIGENCE SYSTEMS (FEDCSIS), 2021, : 17 - 26