Translation from Visual to Layout-based Android Test Cases: A Proof of Concept
2020 (English)In: Proceedings - 2020 IEEE 13th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2020, Institute of Electrical and Electronics Engineers Inc. , 2020, p. 74-83, article id 9156007Conference paper, Published paper (Refereed)
Abstract [en]
Context: 2nd generation (Layout-based) and 3rd generation (Visual) GUI testing are two approaches for testing mobile GUIs, both with individual benefits and drawbacks. Previous research has presented approaches to translate 2nd generation scripts to 3rd generation scripts but not the vice versa. Goal: The objective of this work is to provide Proof of Concept of the effectiveness of automatic translation between existing 3rd generation test scripts to 2nd generation test scripts. Method: A tool architecture is presented and implemented in a tool capable of translating most 3rd generation interactions with the GUI of an Android app into 2nd generation instructions and oracles for the Espresso testing tool.Results: 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). Conclusion: The study provides support for the feasibility of a translation-based approach from 3rd to 2nd generation test cases. However, additional work is needed to make the approach applicable in real-world scenarios or larger open-source test suites. © 2020 IEEE.
Place, publisher, year, edition, pages
Institute of Electrical and Electronics Engineers Inc. , 2020. p. 74-83, article id 9156007
Keywords [en]
Android, Mobile Applications, Software Engineering, Testing, Android (operating system), Graphical user interfaces, Open source software, Verification, 3rd generation, Automatic translation, GUI testing, Open sources, Proof of concept, Real-world scenario, Test case, Test scripts, Software testing
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-20532DOI: 10.1109/ICSTW50294.2020.00027ISI: 000620795100010Scopus ID: 2-s2.0-85091747062ISBN: 9781728110752 (print)OAI: oai:DiVA.org:bth-20532DiVA, id: diva2:1474701
Conference
13th IEEE International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2020, Porto, Portugal 23 March 2020 through 27 March 2020
2020-10-092020-10-092021-03-04Bibliographically approved