arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.15374cs.SE
收藏

使用富状态模拟群体增强 Meta 的测试

Enhancing Testing at Meta with Rich-State Simulated Populations

Nadia Alshahwan, Arianna Blasi, Kinga Bojarczuk, Andrea Ciancone, Natalija Gucevska, Mark Harman, Simon Schellaert, Inna Harper, Yue Jia, Michał Królikowski, Wi… 展开作者

Nadia Alshahwan, Arianna Blasi, Kinga Bojarczuk, Andrea Ciancone, Natalija Gucevska, Mark Harman, Simon Schellaert, Inna Harper, Yue Jia, Michał Królikowski, Will Lewis, Dragos Martac, Rubmary Rojas, Kate Ustiuzhanina

AI总结:

本文提出在 Meta 部署富状态模拟群体进行自动化和手动测试,使代码和端点覆盖率分别提升 38% 和 61%,自动化测试发现的故障增加 115%,并被超 2.1 万名工程师用于隐私安全的手动测试。

摘要:

本文报告了在 Meta 部署 Rich-State Simulated Populations(富状态模拟群体)以进行自动化和手动测试的结果。我们使用模拟用户(即测试用户)来模仿用户交互并获取状态,其方式与真实用户账户获取状态非常相似。对于自动化测试,我们展示了在 iOS 和 Android 平台的 Facebook、Messenger 和 Instagram 应用程序上部署的实证结果。这些应用程序包含数千万行代码,与数亿行后端代码通信,每天被超过 20 亿人使用。结果显示,富状态使平均代码覆盖率提高了 38%,端点覆盖率提高了 61%。更重要的是,它还使自动化测试发现的故障平均增加了 115%。富状态测试用户群体还部署在一个(不断发展的)Test Universe 中;这是一个支持网络、保障隐私的手动测试模拟平台,自 2022 年 11 月部署以来,已有超过 21,000 名 Meta 工程师使用。

英文摘要:

This paper reports the results of the deployment of Rich-State Simulated Populations at Meta for both automated and manual testing. We use simulated users (aka test users) to mimic user interactions and acquire state in much the same way that real user accounts acquire state. For automated testing, we present empirical results from deployment on the Facebook, Messenger, and Instagram apps for iOS and Android Platforms. These apps consist of tens of millions of lines of code, communicating with hundreds of millions of lines of backend code, and are used by over 2 billion people every day. Our results reveal that rich state increases average code coverage by 38\%, and endpoint coverage by 61\%. More importantly, it also yields an average increase of 115\% in the faults found by automated testing. The rich-state test user populations are also deployed in a (continually evolving) Test Universe; a web-enabled simulation platform for privacy-safe manual testing, which has been used by over 21,000 Meta engineers since its deployment in November 2022.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑