TY - JOUR
T1 - Virtual Device Farms for Mobile App Testing at Scale
T2 - 29th Annual International Conference on Mobile Computing and Networking, MobiCom 2023
AU - Lin, Hao
AU - Qiu, Jiaxing
AU - Wang, Hongyi
AU - Li, Zhenhua
AU - Gong, Liangyi
AU - Gao, Di
AU - Liu, Yunhao
AU - Qian, Feng
AU - Zhang, Zhao
AU - Yang, Ping
AU - Xu, Tianyin
N1 - We are very grateful to our shepherd, Mary Baker, for her strong support and invaluable feedback. We thank the anonymous reviewers for their insightful comments. This work is supported in part by National Key R&D Program of China under grant 2022YFB4500703, National Natural Science Foundation of China under grants 61902211, 62202266 and 62272440, China Postdoctoral Science Foundation under grant 2022M721831, and Microsoft Research Asia under grant 100336949. Tianyin Xu is supported in part by NSF CNS-1956007 and CNS-2145295.
PY - 2023
Y1 - 2023
N2 - Virtual devices based on device emulation have been widely used in lab research of mobile app testing for their efficiency and low cost. However, it remains controversial to use virtual devices for app testing in industry, given the inherent difficulties of high-fidelity emulation across diverse mobile systems and devices. Hence, mobile app companies still rely on physical device farms or services like AWS Device Farm.This paper presents our effort to analyze, improve, and effectively use virtual devices for large-scale testing of mobile apps like Douyin. Our goal is to understand the fidelity of virtual devices and to explore how to better utilize virtual devices to improve the efficiency and accessibility of mobile app testing in industrial settings. Our study is conducted on a massive commercial testing infrastructure that deploys a physical device farm and its virtualized counterpart.We show that high-fidelity app testing can be achieved by sensible design and implementation of virtual device farms. With that, we find that major discrepancies are no longer caused by commonly believed factors like hardware heterogeneity and system customizations, but due to non-standard, uncoordinated, and occasionally defective vendor-specific services and drivers, as well as defense mechanisms against malicious app behavior. We present effective solutions to address those problems to significantly improve testing fidelity. We also share our experiences of using virtual device farms to substantially improve the efficiency and accessibility of mobile app testing, without compromising safety.
AB - Virtual devices based on device emulation have been widely used in lab research of mobile app testing for their efficiency and low cost. However, it remains controversial to use virtual devices for app testing in industry, given the inherent difficulties of high-fidelity emulation across diverse mobile systems and devices. Hence, mobile app companies still rely on physical device farms or services like AWS Device Farm.This paper presents our effort to analyze, improve, and effectively use virtual devices for large-scale testing of mobile apps like Douyin. Our goal is to understand the fidelity of virtual devices and to explore how to better utilize virtual devices to improve the efficiency and accessibility of mobile app testing in industrial settings. Our study is conducted on a massive commercial testing infrastructure that deploys a physical device farm and its virtualized counterpart.We show that high-fidelity app testing can be achieved by sensible design and implementation of virtual device farms. With that, we find that major discrepancies are no longer caused by commonly believed factors like hardware heterogeneity and system customizations, but due to non-standard, uncoordinated, and occasionally defective vendor-specific services and drivers, as well as defense mechanisms against malicious app behavior. We present effective solutions to address those problems to significantly improve testing fidelity. We also share our experiences of using virtual device farms to substantially improve the efficiency and accessibility of mobile app testing, without compromising safety.
KW - efficiency
KW - fidelity
KW - mobile app testing
KW - virtualization
UR - http://www.scopus.com/inward/record.url?scp=85183326905&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85183326905&partnerID=8YFLogxK
U2 - 10.1145/3570361.3613259
DO - 10.1145/3570361.3613259
M3 - Conference article
AN - SCOPUS:85183326905
SN - 1543-5679
SP - 674
EP - 690
JO - Proceedings of the Annual International Conference on Mobile Computing and Networking, MOBICOM
JF - Proceedings of the Annual International Conference on Mobile Computing and Networking, MOBICOM
Y2 - 2 October 2023 through 6 October 2023
ER -