Layout-based and Visual GUI testing are two approaches for testing mobile GUIs, both with individual benefits and drawbacks. Previous research has presented approaches to translate Layout-based scripts to hirdgen scripts but not the vice versa. The objective of this work is to provide Proof of Concept of the effectiveness of automatic translation between existing Visual test scripts to Layout-based test scripts. A tool architecture is presented and implemented in a tool capable of translating most hirdgen interactions with the GUI of an Android app into Layout-based instructions and oracles for the Espresso testing tool. We validate our approach on two test suites of our own creation, consisting of 30 test cases each. The measured success rate of the translation is 96.7% (58 working test cases out of 60 applications of the translator). The study provides support for the feasibility of a translation-based approach from Visual to Layout-based test cases. However, additional work is needed to make the approach applicable in real-world scenarios or larger open-source test suites.
Translation from Visual to Layout-based Android Test Cases: a Proof of Concept / Coppola, Riccardo; Ardito, Luca; Torchiano, Marco; Alégroth, Emil. - ELETTRONICO. - (2020), pp. 74-83. (Intervento presentato al convegno 2020 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW) tenutosi a Porto, Portugal nel 24-28 Oct. 2020) [10.1109/ICSTW50294.2020.00027].
Translation from Visual to Layout-based Android Test Cases: a Proof of Concept
Riccardo Coppola;Luca Ardito;Marco Torchiano;
2020
Abstract
Layout-based and Visual GUI testing are two approaches for testing mobile GUIs, both with individual benefits and drawbacks. Previous research has presented approaches to translate Layout-based scripts to hirdgen scripts but not the vice versa. The objective of this work is to provide Proof of Concept of the effectiveness of automatic translation between existing Visual test scripts to Layout-based test scripts. A tool architecture is presented and implemented in a tool capable of translating most hirdgen interactions with the GUI of an Android app into Layout-based instructions and oracles for the Espresso testing tool. We validate our approach on two test suites of our own creation, consisting of 30 test cases each. The measured success rate of the translation is 96.7% (58 working test cases out of 60 applications of the translator). The study provides support for the feasibility of a translation-based approach from Visual to Layout-based test cases. However, additional work is needed to make the approach applicable in real-world scenarios or larger open-source test suites.File | Dimensione | Formato | |
---|---|---|---|
INTUITESTBEDS_2020.pdf
accesso aperto
Tipologia:
2. Post-print / Author's Accepted Manuscript
Licenza:
PUBBLICO - Tutti i diritti riservati
Dimensione
274.24 kB
Formato
Adobe PDF
|
274.24 kB | Adobe PDF | Visualizza/Apri |
Translation_from_Visual_to_Layout-based_Android_Test_Cases_a_Proof_of_Concept.pdf
non disponibili
Tipologia:
2a Post-print versione editoriale / Version of Record
Licenza:
Non Pubblico - Accesso privato/ristretto
Dimensione
270.09 kB
Formato
Adobe PDF
|
270.09 kB | Adobe PDF | Visualizza/Apri Richiedi una copia |
Pubblicazioni consigliate
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.
https://hdl.handle.net/11583/2957844