AI
New technique uses AI to automatically generate test properties for mobile apps
Researchers introduce PropGen, a system that leverages large language models to automatically construct test properties for detecting subtle functional bugs in Android apps.
Finding bugs in mobile apps that don't crash but produce wrong behavior under specific circumstances remains a major testing challenge. Property-based testing can help catch these elusive functional defects, but the approach has a critical barrier: creating the test properties by hand is time-consuming and requires deep technical expertise.
A new research effort tackles this bottleneck by automating property generation itself. Researchers have developed PropGen, a system that uses large language models to infer test properties from an app's behavior, then validates and refines them to ensure their correctness.
How PropGen works#
The system operates in a multi-stage pipeline designed to handle two core difficulties: discovering what the app can actually do, and translating those behaviors into meaningful test properties.
PropGen starts by analyzing the app's graphical interface and inferring possible functionalities as hypotheses. It then runs each suspected feature, gathering real behavioral evidence about how the app responds. From this evidence, the system synthesizes candidate properties—formal statements about what should always be true. Finally, it uses test failures and feedback to refine properties that turned out to be imprecise or incomplete.
Results from real-world testing#
The team evaluated PropGen on 12 real-world Android applications with promising results:
- Functionality discovery: PropGen identified 1,210 valid app functionalities and successfully executed 977 of them, compared to just 491 and 187 for a baseline approach
- Property generation: The system created 985 properties overall, with 912 proving to be valid
- Property refinement: During testing, 127 imprecise properties were discovered; PropGen successfully refined 118 of them
- Bug detection: Using the generated properties, researchers uncovered 25 previously unknown functional bugs that conventional testing techniques had missed
Why this matters#
The findings demonstrate that large language models can meaningfully assist in the traditionally manual and difficult task of test specification. By automating property construction, the approach makes property-based testing more practical for real-world mobile development, potentially catching subtle behavioral problems that would otherwise ship to users.

