Mobile GUI tests can be classified as layout-based – i.e. using GUI properties as locators – or Visual – i.e. using widgets’ screen captures as locators –. Visual test scripts require significant maintenance efforts to be kept aligned with the tested application as it evolves or it is ported to different devices. This work aims to conceptualize a translation-based approach to automatically derive Visual tests from existing layout-based counterparts or repair them when graphical changes occur, and to develop a tool that implements and validates the approach. We present TOGGLE, a tool that translates Espresso layout-based tests for Android apps to Visual tests that conform to either SikuliX, EyeAutomate, or a combination of the two tools’ syntax. An experiment is conducted to measure the precision of the translation approach, which is evaluated on maintenance tasks triggered by graphical changes due to device diversity. Our results demonstrate the feasibility of a translation-based approach, show that script portability to different devices is improved (from 32% to 93%), and indicate that translation can repair up to 90% of Visual locators in failing tests. GUI test translation mitigates challenges with Visual tests like maintenance effort and portability, enabling their wider use in industrial practice.
Translation from Layout-based to Visual Android Test Scripts: an Empirical Evaluation / Coppola, Riccardo; Ardito, Luca; Torchiano, Marco; Alégroth, Emil. - In: THE JOURNAL OF SYSTEMS AND SOFTWARE. - ISSN 0164-1212. - ELETTRONICO. - 171(2020), pp. 1-26.
|Titolo:||Translation from Layout-based to Visual Android Test Scripts: an Empirical Evaluation|
|Data di pubblicazione:||2020|
|Digital Object Identifier (DOI):||http://dx.doi.org/10.1016/j.jss.2020.110845|
|Appare nelle tipologie:||1.1 Articolo in rivista|
File in questo prodotto:
|TOGGLE.pdf||2. Post-print / Author's Accepted Manuscript||Embargo: 10/10/2022 Richiedi una copia|
|1-s2.0-S0164121220302351-main.pdf||2a Post-print versione editoriale / Version of Record||Non Pubblico - Accesso privato/ristretto||Administrator Richiedi una copia|