Flaky Test Detection Based on Adaptive Latest Position Execution for Concurrent Android Applications

Publication typeJournal Article
Publication date2024-06-14
scimago Q3
wos Q4
SJR0.206
CiteScore1.8
Impact factor0.6
ISSN02181940, 17936403
Abstract

Tests may pass or fail under the same conditions. These tests are commonly known as flaky tests. In Android applications, the primary reason for flaky tests is attributed to its event-driven programming paradigm and multi-threading concurrency mechanism. It may activate an unexpected event order when a test is executed, causing test flakiness. The later the execution of asynchronous events, the more likely it is to result in test flakiness. Inspired by this deduction, this paper puts forward a flaky test detection method for concurrent Android applications based on adaptive latest position execution. In more detail, the latest execution positions of each asynchronous event are identified by analyzing the sequential dependencies between events. On this basis, the asynchronous event is scheduled at the corresponding position, thereby trying to change the test results and detecting flaky tests. To validate the effectiveness and efficiency of our approach, a series of experiments are conducted on 16 known flaky test cases across 7 Android applications. The experimental results show that compared with the state-of-the-art tool FlakeScanner, the flaky test detection rate of our approach improves by 18.75%.

Found 

Are you a researcher?

Create a profile to get free access to personal recommendations for colleagues and new articles.
Metrics
0
Share
Cite this
GOST |
Cite this
GOST Copy
Zhang W. et al. Flaky Test Detection Based on Adaptive Latest Position Execution for Concurrent Android Applications // International Journal of Software Engineering and Knowledge Engineering. 2024. Vol. 34. No. 08. pp. 1313-1338.
GOST all authors (up to 50) Copy
Zhang W., Wang W., ZHAO R. Flaky Test Detection Based on Adaptive Latest Position Execution for Concurrent Android Applications // International Journal of Software Engineering and Knowledge Engineering. 2024. Vol. 34. No. 08. pp. 1313-1338.
RIS |
Cite this
RIS Copy
TY - JOUR
DO - 10.1142/s0218194024500232
UR - https://www.worldscientific.com/doi/10.1142/S0218194024500232
TI - Flaky Test Detection Based on Adaptive Latest Position Execution for Concurrent Android Applications
T2 - International Journal of Software Engineering and Knowledge Engineering
AU - Zhang, Weixi
AU - Wang, Weiwei
AU - ZHAO, RUILIAN
PY - 2024
DA - 2024/06/14
PB - World Scientific
SP - 1313-1338
IS - 08
VL - 34
SN - 0218-1940
SN - 1793-6403
ER -
BibTex |
Cite this
BibTex (up to 50 authors) Copy
@article{2024_Zhang,
author = {Weixi Zhang and Weiwei Wang and RUILIAN ZHAO},
title = {Flaky Test Detection Based on Adaptive Latest Position Execution for Concurrent Android Applications},
journal = {International Journal of Software Engineering and Knowledge Engineering},
year = {2024},
volume = {34},
publisher = {World Scientific},
month = {jun},
url = {https://www.worldscientific.com/doi/10.1142/S0218194024500232},
number = {08},
pages = {1313--1338},
doi = {10.1142/s0218194024500232}
}
MLA
Cite this
MLA Copy
Zhang, Weixi, et al. “Flaky Test Detection Based on Adaptive Latest Position Execution for Concurrent Android Applications.” International Journal of Software Engineering and Knowledge Engineering, vol. 34, no. 08, Jun. 2024, pp. 1313-1338. https://www.worldscientific.com/doi/10.1142/S0218194024500232.