Repairing Obsolete GUI Test Scripts for Android Applications with Exploration and Backtracking

被引:0
|
作者
Ji, Ruihua [1 ]
Qian, Zhengxuan [1 ]
Li, Zhong [1 ]
Zhu, Xiaoqing [1 ]
Pei, Yu [2 ]
Pan, Minxue [1 ]
Zhang, Tian [1 ]
机构
[1] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Peoples R China
[2] Hong Kong Polytech Univ, Dept Comp, Hong Kong, Peoples R China
基金
中国国家自然科学基金;
关键词
Android testing; test script repair; GUI analysis;
D O I
10.1145/3671016.3671377
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Today, Android applications (apps) have become ubiquitous in various aspects of life, highlighting the importance of graphical user interface (GUI) testing in ensuring their quality. To address the high cost associated with manual GUI testing, automated GUI test scripts are commonly developed. However, as Android apps evolve rapidly to offer more services or enhance existing ones, the GUI of these applications undergoes changes between the base and updated versions, leading to the obsolescence of existing GUI test scripts and increased maintenance costs. While existing repair approaches effectively manage minor GUI changes by replacing the locators of relevant widgets, they face challenges in addressing complex updates that bring significant GUI changes, thereby altering the interaction logic. This paper proposes a novel GUI test script repair approach to tackle these challenges. The approach utilizes an exploration and backtracking method to address the substantial GUI changes introduced by complex updates. By controlling the exploration space through exploration priority and pruning techniques, the approach achieves high effectiveness in repairing obsolete GUI tests caused by complex updates. We implemented our approach into a tool and evaluated its effectiveness and efficiency on 22 open-source Android apps and a total of 122 obsolete GUI test scripts. The experimental results showed that our approach can successfully repair 90% of the obsolete GUI test scripts.
引用
收藏
页码:51 / 60
页数:10
相关论文
共 50 条
  • [41] Test Patterns for Android Mobile Applications
    Morgado, Ines Coimbra
    Paiva, Ana C. R.
    PROCEEDINGS OF THE 20TH EUROPEAN CONFERENCE ON PATTERN LANGUAGES OF PROGRAMS (EUROPLOP 2015), 2015,
  • [42] Regression Test Selection for Android Applications
    Do, Quan
    Yang, Guowei
    Che, Meiru
    Hui, Darren
    Ridgeway, Jefferson
    2016 IEEE/ACM INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2016), 2016, : 27 - 28
  • [43] Which Factor Impacts GUI Traversal-Based Test Case Generation Technique Most? A Controlled Experiment on Android Applications
    Jiang, Bo
    Zhang, Yaoyue
    Chan, W. K.
    Zhang, Zhenyu
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS), 2017, : 21 - 31
  • [44] Mobile GUI Testing Fragility: A Study on Open-Source Android Applications
    Coppola, Riccardo
    Morisio, Maurizio
    Torchiano, Marco
    IEEE TRANSACTIONS ON RELIABILITY, 2019, 68 (01) : 67 - 90
  • [45] Widget-Sensitive and Back-Stack-Aware GUI Exploration for Testing Android Apps
    Yan, Jiwei
    Wu, Tianyong
    Yan, Jun
    Zhang, Jian
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS), 2017, : 42 - 53
  • [46] Automatic GUI Test Generation for Smartphone Applications - an Evaluation
    Jaaskelainen, Antti
    Katara, Mika
    Kervinen, Antti
    Maunumaa, Mika
    Paakonen, Tuula
    Takala, Tommi
    Virtanen, Heikki
    2009 31ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, COMPANION VOLUME, 2009, : 112 - +
  • [47] A Metaheuristic Approach to Test Sequence Generation for Applications with a GUI
    Bauersfeld, Sebastian
    Wappler, Stefan
    Wegener, Joachim
    SEARCH BASED SOFTWARE ENGINEERING, 2011, 6956 : 173 - 187
  • [48] A metaheuristic approach to test sequence generation for applications with a GUI
    Bauersfeld, Sebastian
    Wappler, Stefan
    Wegener, Joachim
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2011, 6956 LNCS : 173 - 187
  • [49] QBE: QLearning-Based Exploration of Android Applications
    Koroglu, Yavuz
    Sen, Alper
    Muslu, Ozlem
    Mete, Yunus
    Ulker, Ceyda
    Tanriverdi, Tolga
    Donmez, Yunus
    2018 IEEE 11TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2018, : 105 - 115
  • [50] Translation from layout-based to visual android test scripts: An empirical evaluation
    Coppola, Riccardo
    Ardito, Luca
    Torchiano, Marco
    Alegroth, Emil
    JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 171