How Facebook Uses Sapienz AI to Automate Android App Testing and Reduce Crashes

By: GoBeyond Team
July 3, 2025
3 min read
Facebook Sapienz AI testing dashboard showing test case generation and crash detection

Quick Overview

Facebook deployed Sapienz, an AI-powered automated testing tool, to autonomously generate, execute, and report tens of thousands of test cases daily for its Android app. Sapienz explores app behaviors using search-based software engineering, identifies bugs including edge cases missed by manual testing, and integrates with continuous deployment pipelines for rapid bug detection and fixes.

Facebook (Meta)
Facebook (Meta)
Company Size
Large multinational social media company
Revenue Range
$130B+ annual revenue
Primary Challenge
Ensuring app stability and performance at massive scale with efficient and comprehensive testing
Key Metrics
\- 80% reduction in Android app crashes\- Tens of thousands of test cases generated and run daily\- 75% of Sapienz reports actionable and result in fixes\- Near real-time bug detection and reporting\- Extremely low false-positive rate

The Problem

Manual test design was time-consuming, limited in coverage, and unable to keep pace with rapid development cycles

The Solution

Sapienz uses multi-objective search-based software engineering (SBSE) to automatically design system-level test cases, run them on hundreds to thousands of emulators, and report results directly to developers via continuous integration tools

Results

\- Dramatically faster bug detection and resolution\- Improved test coverage including hard-to-find edge cases\- Reduced crash rates and improved app stability\- Friction-free integration into developer workflows\- Scalable testing infrastructure running 24/7 on thousands of emulators

“Sapienz has transformed our testing process, enabling engineers to fix issues within minutes of code submission and significantly reducing app crashes.”

Facebook Engineering Team

Details

Industry
Technology & SaaS
Departments
Product Development & Innovation
IT & Security
Use Cases
Product Testing
Tags
GenAI
NLP
Scalability
Team Efficiency
Time-Saving
AI Tools Used
No items found.
Sources
https://engineering.fb.com/2018/05/02/developer-tools/sapienz-intelligent-automated-software-testing-at-scale/https://www.linkedin.com/pulse/ai-software-testing-real-success-stories-mihir-ranjan-panda-ton5c/https://siliconangle.com/2018/05/02/facebook-brings-automated-testing-developers-scale-sapeinz/https://blog.bytebytego.com/p/automated-bug-fixing-at-facebookhttps://discovery.ucl.ac.uk/id/eprint/10060107/1/Harman_Deploying%20Search%20Based%20Software%20Engineering%20with%20Sapienz%20at%20Facebook_VoR.pdfhttps://dev.to/ronika_kashyap/ai-in-software-testing-enhancing-quality-and-efficiency-k3lhttps://www.weforum.org/stories/2018/10/facebook-sapfix-app-ai-fixes-itself/https://engineering.fb.com/2021/10/20/developer-tools/autonomous-testing/

More Case Studies

See All
How Disney’s Frozen II Used AI-Driven Tools to Revolutionize Animation Production and Visual Realism
Media & Entertainment
How a Supermarket Chain Uses Bigle Legal AI to Rapidly Review Supplier Agreements and Reduce Contract Risks
Retail & E-commerce
How NASA’s Jet Propulsion Laboratory Uses Trello with Butler AI to Predict Project Roadblocks and Automate Workflow for Complex Missions
Technology & SaaS
How HubSpot Uses AI-Powered Blog Ideas Generator to Accelerate Content Ideation and Increase Blog Traffic
Technology & SaaS
How Cybots AI Enabled Faster Government Cybersecurity Response with AI-Driven Endpoint Security
Technology & SaaS
How UPS Uses ORION AI to Optimize Delivery Routes, Reduce Costs, and Lower Emissions
Retail & E-commerce

🤖 Chat with AI

Type...