An Empirical Analysis of UI-based Flaky Tests
Alan Romano (1), Zihe Song (2), Sampath Grandhi (2), Wei Yang (2),, Weihang Wang (1) ((1) University at Buffalo, SUNY, (2) University of Texas at, Dallas)

TL;DR
This paper conducts an empirical study on flaky UI tests across web and Android projects, identifying root causes, manifestation strategies, and fixes to inform future detection and prevention methods.
Contribution
It provides the first comprehensive analysis of flaky UI tests, highlighting their unique challenges and underlying causes compared to traditional unit tests.
Findings
Identified common root causes of flaky UI tests
Analyzed strategies used to manifest flakiness
Documented fixing strategies for flaky UI tests
Abstract
Flaky tests have gained attention from the research community in recent years and with good reason. These tests lead to wasted time and resources, and they reduce the reliability of the test suites and build systems they affect. However, most of the existing work on flaky tests focus exclusively on traditional unit tests. This work ignores UI tests that have larger input spaces and more diverse running conditions than traditional unit tests. In addition, UI tests tend to be more complex and resource-heavy, making them unsuited for detection techniques involving rerunning test suites multiple times. In this paper, we perform a study on flaky UI tests. We analyze 235 flaky UI test samples found in 62 projects from both web and Android environments. We identify the common underlying root causes of flakiness in the UI tests, the strategies used to manifest the flaky behavior, and the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Engineering Research · Advanced Malware Detection Techniques
