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 条
  • [1] ATOM: Automatic Maintenance of GUI Test Scripts for Evolving Mobile Applications
    Li, Xiao
    Chang, Nana
    Wang, Yan
    Huang, Haohua
    Pei, Yu
    Wang, Linzhang
    Li, Xuandong
    2017 10TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2017, : 161 - 171
  • [2] ATOM: Automatic Maintenance of GUI Test Scripts for Evolving Mobile Applications
    1600, Institute of Electrical and Electronics Engineers Inc., United States
  • [3] A Coverage Measurement Method For GUI Test Cases On Android Applications
    MIRZA, Merve Melis
    SEN, Alper
    2021 15TH TURKISH NATIONAL SOFTWARE ENGINEERING SYMPOSIUM (UYMS), 2021, : 25 - 30
  • [4] An XPath-based Approach to Reusing Test Scripts for Android Applications
    Song, Fei
    Xu, Zhuoming
    Xu, Feng
    2017 14TH WEB INFORMATION SYSTEMS AND APPLICATIONS CONFERENCE (WISA 2017), 2017, : 143 - 148
  • [5] Automatically Generating Test Scripts for GUI Testing
    Kurabayashi, Toshiyuki
    Iyama, Muneyoshi
    Kirinuki, Hiroyuki
    Tanno, Haruto
    2018 IEEE 11TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2018, : 146 - 150
  • [6] Android GUI Test Generation with SARSA
    Khan, Md Khorrom
    Bryce, Renee
    2022 IEEE 12TH ANNUAL COMPUTING AND COMMUNICATION WORKSHOP AND CONFERENCE (CCWC), 2022, : 487 - 493
  • [7] A Toolset for GUI Testing of Android Applications
    Amalfitano, Domenico
    Fasolino, Anna Rita
    Tramontana, Porfirio
    De Carmine, Salvatore
    Imparato, Gennaro
    2012 28TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), 2012, : 650 - 653
  • [8] Maintaining and Evolving GUI-Directed Test Scripts
    Grechanik, Mark
    Xie, Qing
    Fu, Chen
    2009 31ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2009, : 408 - 418
  • [9] GUI-Guided Repair of Mobile Test Scripts
    Pan, Minxue
    Xu, Tongtong
    Pei, Yu
    Li, Zhong
    Zhang, Tian
    Li, Xuandong
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2019), 2019, : 326 - 327
  • [10] Inferring Types of References to GUI Objects in Test Scripts
    Fu, Chen
    Grechanik, Mark
    Xie, Qing
    SECOND INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION, AND VALIDATION, PROCEEDINGS, 2009, : 1 - 10