AUITestAgent: Automatic Requirements Oriented GUI Function Testing

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hu, Yongxiang, Wang, Xuan, Wang, Yingchuan, Zhang, Yu, Guo, Shiyu, Chen, Chaoyi, Wang, Xin, Zhou, Yangfan
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929418582097920
author Hu, Yongxiang
Wang, Xuan
Wang, Yingchuan
Zhang, Yu
Guo, Shiyu
Chen, Chaoyi
Wang, Xin
Zhou, Yangfan
author_facet Hu, Yongxiang
Wang, Xuan
Wang, Yingchuan
Zhang, Yu
Guo, Shiyu
Chen, Chaoyi
Wang, Xin
Zhou, Yangfan
contents The Graphical User Interface (GUI) is how users interact with mobile apps. To ensure it functions properly, testing engineers have to make sure it functions as intended, based on test requirements that are typically written in natural language. While widely adopted manual testing and script-based methods are effective, they demand substantial effort due to the vast number of GUI pages and rapid iterations in modern mobile apps. This paper introduces AUITestAgent, the first automatic, natural language-driven GUI testing tool for mobile apps, capable of fully automating the entire process of GUI interaction and function verification. Since test requirements typically contain interaction commands and verification oracles. AUITestAgent can extract GUI interactions from test requirements via dynamically organized agents. Then, AUITestAgent employs a multi-dimensional data extraction strategy to retrieve data relevant to the test requirements from the interaction trace and perform verification. Experiments on customized benchmarks demonstrate that AUITestAgent outperforms existing tools in the quality of generated GUI interactions and achieved the accuracy of verifications of 94%. Moreover, field deployment in Meituan has shown AUITestAgent's practical usability, with it detecting 4 new functional bugs during 10 regression tests in two months.
format Preprint
id arxiv_https___arxiv_org_abs_2407_09018
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle AUITestAgent: Automatic Requirements Oriented GUI Function Testing
Hu, Yongxiang
Wang, Xuan
Wang, Yingchuan
Zhang, Yu
Guo, Shiyu
Chen, Chaoyi
Wang, Xin
Zhou, Yangfan
Software Engineering
The Graphical User Interface (GUI) is how users interact with mobile apps. To ensure it functions properly, testing engineers have to make sure it functions as intended, based on test requirements that are typically written in natural language. While widely adopted manual testing and script-based methods are effective, they demand substantial effort due to the vast number of GUI pages and rapid iterations in modern mobile apps. This paper introduces AUITestAgent, the first automatic, natural language-driven GUI testing tool for mobile apps, capable of fully automating the entire process of GUI interaction and function verification. Since test requirements typically contain interaction commands and verification oracles. AUITestAgent can extract GUI interactions from test requirements via dynamically organized agents. Then, AUITestAgent employs a multi-dimensional data extraction strategy to retrieve data relevant to the test requirements from the interaction trace and perform verification. Experiments on customized benchmarks demonstrate that AUITestAgent outperforms existing tools in the quality of generated GUI interactions and achieved the accuracy of verifications of 94%. Moreover, field deployment in Meituan has shown AUITestAgent's practical usability, with it detecting 4 new functional bugs during 10 regression tests in two months.
title AUITestAgent: Automatic Requirements Oriented GUI Function Testing
topic Software Engineering
url https://arxiv.org/abs/2407.09018