Maintenance of Android Widget-based GUI Testing: A Taxonomy of test case modification causes

被引:6
作者
Coppola, Riccardo [1 ]
Morisio, Maurizio [1 ]
Torchiano, Marco [1 ]
机构
[1] Politecn Torino, Dept Comp & Automat Engn, Turin, Italy
来源
2018 IEEE 11TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW) | 2018年
关键词
D O I
10.1109/ICSTW.2018.00044
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Automated GUI testing is a fundamental part of the V&V process of every software, but - especially for fast evolving applications - is linked to relevant maintenance costs. Android (and mobile, in general) apps are also particularly prone to fragility, i.e. even minor modifications in the graphical user interface may induce relevant adaptation effort on test code. Based on a preliminary exploration about the evolution and fragility of test suites that we made on a set of nearly 20 thousand Android open-source projects hosted on GitHub, we performed a deeper inspection about the causes underlying the modifications in test classes and methods. We manually examined a set of 423 projects featuring the Espresso automated GUI testing tool, and 945 diff files containing modifications in test methods. We derived a set of 27 different causes of modifications, that we grouped into nine different macro-categories, two related to modifications performed just in code and application logic, and seven pertaining modifications in the GUI functioning and appearance, and hence related to our definition of GUI testing fragility. Based on the set of projects we inspected, we conclude that modifications related to changes in the GUI occured in 55% of modified test methods, a higher frequency than the ones related to changes in test logic only (35%) and to adaptations to modified application logic (27%). The described taxonomy can serve as a basis for further research, aimed at giving guidelines to developers to avoid fragility, and reduce the maintenance costs for automated test suites for Android applications.
引用
收藏
页码:151 / 158
页数:8
相关论文
共 20 条
  • [1] Maintenance of automated test suites in industry: An empirical study on Visual GUI Testing
    Alegroth, Emil
    Feldt, Robert
    Kolstrom, Pirjo
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2016, 73 : 66 - 80
  • [2] Alegroth Emil, 2016, SOFTW TEST VER VAL W
  • [3] MobiGUITAR Automated Model-Based Testing of Mobile Apps
    Amalfitano, Domenico
    Fasolino, Anna Rita
    Tramontana, Porfirio
    Ta, Bryan Dzung
    Memon, Atif M.
    [J]. IEEE SOFTWARE, 2015, 32 (05) : 53 - 59
  • [4] [Anonymous], 2014, International_Journal_of_Current_Engineering_and_Technology
  • [5] Coppola R., 2017, P 3 INT WORKSH US IN P 3 INT WORKSH US IN
  • [6] Kaur Anureet, 2015, REV MOBILE APPL TEST, V4, P10
  • [7] Android Application Development and Testability
    Knych, Thomas W.
    Baliga, Ashwin
    [J]. PROCEEDINGS OF THE 1ST INTERNATIONAL CONFERENCE ON MOBILE SOFTWARE ENGINEERING AND SYSTEMS (MOBILESOFT 2014), 2014, : 37 - 40
  • [8] Kochhar PS, 2015, SOFTW TEST VER VAL I, P1
  • [9] Leotta Maurizio, 2014, INT C WEB ENG
  • [10] Liu C. H., 2014, COMP CONS CONTR IS3C