Article (Périodiques scientifiques)
Non-Flaky and Nearly-Optimal Time-based Treatment of Asynchronous Wait Web Tests
PEI, Yu; SOHN, Jeongju; HABCHI, Sarra et al.
2024In ACM Transactions on Software Engineering and Methodology
Peer reviewed vérifié par ORBi
 

Documents


Texte intégral
non-flaky.pdf
Postprint Auteur (14.76 MB)
Télécharger

Tous les documents dans ORBilu sont protégés par une licence d'utilisation.

Envoyer vers



Détails



Résumé :
[en] Asynchronous waits are a common root cause of flaky tests and a major time-influential factor of web application testing. We build a dataset of 49 reproducible asynchronous wait flaky tests and their fixes from 26 open-source projects to study their characteristics in web testing. Our study reveals that developers adjusted wait time to address asynchronous wait flakiness in about 63% of cases (31 out of 49), even when the underlying causes lie elsewhere. From this, we introduce TRaf, an automated time-based repair for asynchronous wait flakiness in web applications. TRaf determines appropriate wait times for asynchronous calls in web applications by analyzing code similarity and past change history. Its key insight is that efficient wait times can be inferred from the current or past codebase since developers tend to repeat similar mistakes. Our analysis shows that TRaf can statically suggest a shorter wait time to alleviate async wait flakiness immediately upon the detection, reducing test execution time by 11.1% compared to the timeout values initially chosen by developers. With optional dynamic tuning, TRaf can reduce the execution time by 16.8% in its initial refinement compared to developer-written patches and by 6.2% compared to the post-refinements of these original patches. Overall, we sent 16 pull requests from our dataset, each fixing one test, to the developers. So far, three have been accepted by the developers.
Disciplines :
Sciences informatiques
Auteur, co-auteur :
PEI, Yu  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT) > SerVal
SOHN, Jeongju  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust > SerVal > Team Mike PAPADAKIS ; Kyungpook National University, Korea
HABCHI, Sarra  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust > SerVal > Team Yves LE TRAON ; Ubisoft, Canada
PAPADAKIS, Mike  ;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT) > SerVal
Co-auteurs externes :
yes
Langue du document :
Anglais
Titre :
Non-Flaky and Nearly-Optimal Time-based Treatment of Asynchronous Wait Web Tests
Date de publication/diffusion :
13 septembre 2024
Titre du périodique :
ACM Transactions on Software Engineering and Methodology
ISSN :
1049-331X
Maison d'édition :
Association for Computing Machinery (ACM)
Peer reviewed :
Peer reviewed vérifié par ORBi
Disponible sur ORBilu :
depuis le 04 novembre 2024

Statistiques


Nombre de vues
97 (dont 5 Unilu)
Nombre de téléchargements
283 (dont 2 Unilu)

citations Scopus®
 
0
citations Scopus®
sans auto-citations
0
OpenCitations
 
0
citations OpenAlex
 
2

Bibliographie


Publications similaires



Contacter ORBilu