Automated Test Transfer Across Android Apps Using Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Beyzaei, Benyamin, Talebipour, Saghar, Rafiei, Ghazal, Medvidovic, Nenad, Malek, Sam
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910914774564864
author Beyzaei, Benyamin
Talebipour, Saghar
Rafiei, Ghazal
Medvidovic, Nenad
Malek, Sam
author_facet Beyzaei, Benyamin
Talebipour, Saghar
Rafiei, Ghazal
Medvidovic, Nenad
Malek, Sam
contents The pervasiveness of mobile apps in everyday life necessitates robust testing strategies to ensure quality and efficiency, especially through end-to-end usage-based tests for mobile apps' user interfaces (UIs). However, manually creating and maintaining such tests can be costly for developers. Since many apps share similar functionalities beneath diverse UIs, previous works have shown the possibility of transferring UI tests across different apps within the same domain, thereby eliminating the need for writing the tests manually. However, these methods have struggled to accommodate real-world variations, often facing limitations in scenarios where source and target apps are not very similar or fail to accurately transfer test oracles. This paper introduces an innovative technique, LLMigrate, which leverages Large Language Models (LLMs) to efficiently transfer usage-based UI tests across mobile apps. Our experimental evaluation shows LLMigrate can achieve a 97.5% success rate in automated test transfer, reducing the manual effort required to write tests from scratch by 91.1%. This represents an improvement of 9.1% in success rate and 38.2% in effort reduction compared to the best-performing prior technique, setting a new benchmark for automated test transfer.
format Preprint
id arxiv_https___arxiv_org_abs_2411_17933
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Automated Test Transfer Across Android Apps Using Large Language Models
Beyzaei, Benyamin
Talebipour, Saghar
Rafiei, Ghazal
Medvidovic, Nenad
Malek, Sam
Software Engineering
The pervasiveness of mobile apps in everyday life necessitates robust testing strategies to ensure quality and efficiency, especially through end-to-end usage-based tests for mobile apps' user interfaces (UIs). However, manually creating and maintaining such tests can be costly for developers. Since many apps share similar functionalities beneath diverse UIs, previous works have shown the possibility of transferring UI tests across different apps within the same domain, thereby eliminating the need for writing the tests manually. However, these methods have struggled to accommodate real-world variations, often facing limitations in scenarios where source and target apps are not very similar or fail to accurately transfer test oracles. This paper introduces an innovative technique, LLMigrate, which leverages Large Language Models (LLMs) to efficiently transfer usage-based UI tests across mobile apps. Our experimental evaluation shows LLMigrate can achieve a 97.5% success rate in automated test transfer, reducing the manual effort required to write tests from scratch by 91.1%. This represents an improvement of 9.1% in success rate and 38.2% in effort reduction compared to the best-performing prior technique, setting a new benchmark for automated test transfer.
title Automated Test Transfer Across Android Apps Using Large Language Models
topic Software Engineering
url https://arxiv.org/abs/2411.17933