An analysis of widget layout attributes to support Android GUI-based testing

被引:2
作者
Fulcini, Tommaso [1 ]
Coppola, Riccardo [1 ]
Torchiano, Marco [1 ]
Ardito, Luca [1 ]
机构
[1] Politecn Torino, Dept Control & Comp Engn, Turin, Italy
来源
2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS, ICSTW | 2023年
关键词
GUI testing; GUI testing repair; Software Testing; Software Engineering; GUI testing fragility; TEST SUITES;
D O I
10.1109/ICSTW58534.2023.00033
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the context of GUI testing, identifying robust locators (i.e., attributes to unambiguously identify on-screen widgets to be used in test sequences) is still considered an unsolved challenge by the researchers' community. The frequent variation of attributes between different releases of the System Under Test (SUT) leads in fact to testing fragility, i.e., test case failing because of invalidated locators. Recent studies have highlighted the benefits of adopting multi-locator approach, i.e., the combination of multiple locators to enhance the robustness of widget identification. The objective of this work is to provide insights into the composition of Android applications, assessing the characteristics of different layout-based properties and their suitability to be used as locators for widgets in the context of GUI-based testing. We investigated the state of the practice by analysing the distribution of widget values within 30 real apps selected from the Google Play Store. For those apps, we selected two different versions to examine how they evolved over time from both visual and structural perspectives. The results of our analysis showed that providing robust GUI testing over multiple releases of mobile SUTs is difficult, as identifying a single attribute or technique (either coordinate-, property-, or visual-based) capable of locating visual elements is often not sufficient due to missing values, variability, and instability of attributes.
引用
收藏
页码:117 / 125
页数:9
相关论文
共 17 条
[1]   Maintenance of automated test suites in industry: An empirical study on Visual GUI Testing [J].
Alegroth, Emil ;
Feldt, Robert ;
Kolstrom, Pirjo .
INFORMATION AND SOFTWARE TECHNOLOGY, 2016, 73 :66-80
[2]  
Alegroth Emil, 2015, IEEE INT C SOFTWARE
[3]  
Android Open Source Project, 2022, APP RES OV
[4]   Espresso vs. EyeAutomate: An Experiment for the Comparison of Two Generations of Android GUI Testing [J].
Ardito, Luca ;
Coppola, Riccardo ;
Morisio, Maurizio ;
Torchiano, Marco .
PROCEEDINGS OF EASE 2019 - EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING, 2019, :13-22
[5]   Mobile GUI Testing Fragility: A Study on Open-Source Android Applications [J].
Coppola, Riccardo ;
Morisio, Maurizio ;
Torchiano, Marco .
IEEE TRANSACTIONS ON RELIABILITY, 2019, 68 (01) :67-90
[6]  
Coppola Riccardo, 2017, INT C PRED MOD DAT A, P22, DOI 10.1145/3127005.3127008
[7]  
Developers A., 2022, WHY AD COMP
[8]  
Flynn J., 2022, SUCCESS MOBILE APPS
[9]  
Kochhar PS, 2015, IEEE ICST WORKSHOP
[10]   Approaches and Tools for Automated End-to-End Web Testing [J].
Leotta, Maurizio ;
Clerissi, Diego ;
Ricca, Filippo ;
Tonella, Paolo .
ADVANCES IN COMPUTERS, VOL 101, 2016, 101 :193-237