AI
New Framework Bridges the Gap Between LLM Event Mapping and Real-World App Test Migration
Researchers propose a skill-adaptive imitation learning approach that goes beyond simple event translation to better reuse UI tests across different mobile applications.
Automatically migrating test cases between mobile applications with similar functionality can save developers significant time and effort. However, a research paper from arXiv shows that even when large language models excel at translating user interface events from a source app to a target app, the resulting tests often still fail due to subtle implementation differences.
The Limitation of Pure Event Mapping#
Traditionally, UI test migration has relied on mapping events—button taps, text inputs, and screen interactions—from a well-tested source application to an analogous target application using natural language processing. Researchers observed that while modern LLMs can achieve highly accurate event mappings by analyzing textual descriptions, this precision alone does not guarantee successful test reuse. The gap lies not in understanding what events to perform, but in accounting for how the target app's internal architecture and behavior differ from the source.
Introducing SAIL: Skill-Adaptive Imitation Learning#
To address this limitation, researchers developed SAIL (Skill-Adaptive Imitation Learning), a framework that extracts and reuses deeper patterns from source test cases. Rather than treating test migration as a simple translation problem, SAIL breaks down test cases into multiple levels of abstraction—capturing the underlying skills or testing strategies embedded in the original tests. These skills form a knowledge base that informs how tests should be adapted for the target app.
The framework then applies context- and history-aware logic to selectively activate and modify skills for the new application, allowing it to navigate implementation-specific quirks that pure event mapping misses.
Improved Results#
According to the research findings, SAIL achieves a 149% improvement in success rate compared to existing approaches. By combining LLMs' in-context learning capabilities with this skill-based abstraction layer, the framework demonstrates that robust test migration requires understanding not just individual actions, but the intent and logic behind them.
Implications for Test Automation#
This work highlights an important frontier in test automation: bridging the gap between general-purpose language understanding and domain-specific testing knowledge. As mobile apps grow more diverse and complex, automating test reuse while accounting for implementation variations could meaningfully reduce the manual effort developers invest in quality assurance.

