Test2VA: Reusing GUI Test Cases for Voice Assistant Features Development in Mobile Applications

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Weaver, Garrett, Qin, Xue
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917733441994752
author Weaver, Garrett
Qin, Xue
author_facet Weaver, Garrett
Qin, Xue
contents Voice Assistant (VA) in smartphones has become very popular with millions of users nowadays. A key trend is the rise of custom VA embedding, which enables users to perform the customized tasks of their favorite app through voice control. However, with such a great demand, little effort has been made to support app developers in VA development. Moreover, many user-oriented VA control approaches even increase the programming burden on developers. To reduce the workload and improve code efficiency, in this paper, we propose a novel approach, Test2VA, that reuses the test code of an application to support its VA development. Specifically, Test2VA extracts the task completion pattern from the GUI test code and then generates an execution method to perform the same task in general. To identify the pattern, Test2VA uses a mutation-based exploration to detect the mutable GUI event in the test case and later parameterize it in the VA method. We conducted an evaluation on 48 test cases from eight real-world applications. The results show that Test2VA correctly detects 75.68% of the mutable events from 48 original test cases and then generates 33 methods and have them successfully executed and manually examined.
format Preprint
id arxiv_https___arxiv_org_abs_2407_18155
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Test2VA: Reusing GUI Test Cases for Voice Assistant Features Development in Mobile Applications
Weaver, Garrett
Qin, Xue
Software Engineering
D.2.13; D.2.2
Voice Assistant (VA) in smartphones has become very popular with millions of users nowadays. A key trend is the rise of custom VA embedding, which enables users to perform the customized tasks of their favorite app through voice control. However, with such a great demand, little effort has been made to support app developers in VA development. Moreover, many user-oriented VA control approaches even increase the programming burden on developers. To reduce the workload and improve code efficiency, in this paper, we propose a novel approach, Test2VA, that reuses the test code of an application to support its VA development. Specifically, Test2VA extracts the task completion pattern from the GUI test code and then generates an execution method to perform the same task in general. To identify the pattern, Test2VA uses a mutation-based exploration to detect the mutable GUI event in the test case and later parameterize it in the VA method. We conducted an evaluation on 48 test cases from eight real-world applications. The results show that Test2VA correctly detects 75.68% of the mutable events from 48 original test cases and then generates 33 methods and have them successfully executed and manually examined.
title Test2VA: Reusing GUI Test Cases for Voice Assistant Features Development in Mobile Applications
topic Software Engineering
D.2.13; D.2.2
url https://arxiv.org/abs/2407.18155