Introduction
Modern social media applications like TikTok have evolved beyond single-user experiences, increasingly relying on "multi-user interactive features." These include inviting friends to LIVE sessions, participating in group chats, or real-time co-watching. While these features drive engagement, they present a significant hurdle for quality assurance.
Testing these features is exceptionally difficult due to two primary factors:
- Device Management: Developers must manage a fleet of physical or virtual devices simultaneously.
- Precise Coordination: Interactions must occur in a specific sequence across different screens. For instance, User A must send an invitation before User B can see the "Accept" button. Traditional automated testing tools, designed for single-user navigation, lack the "social awareness" required to coordinate actions across a network of devices.
The Multi-Agent Framework
To address these challenges, the authors propose a system combining a virtual device farm with a multi-agent automation layer. The system takes a natural language prompt and decomposes it into discrete tasks assigned to individual LLM-based agents.
Virtual Device Farm
To minimize the costs associated with physical device labs, the framework utilizes a virtual farm built on ARM-based servers. Since Android runs natively on ARM, this setup avoids the latency of binary translation typical in x86-based emulation, resulting in a system that is 23% cheaper and significantly faster.
Multi-agent Task Automation
The core of the system utilizes multiple LLM-based agents (GPT-4) to simulate user behavior:
- Task Decomposition: Natural language prompts are broken down into discrete tasks for each agent.
- The
[switch]Command: This innovation facilitates coordination. When an agent completes an action (like sending an invite), it issues a[switch]command, signaling the next agent to monitor its device for the expected UI change. - GUI Representation: To optimize token usage, the system converts Android XML view hierarchies into a simplified, text-based format focusing exclusively on interactive elements.
Empirical Evaluation
The researchers conducted a study using a massive internal dataset from TikTok, comprising 7,870 task descriptions. A pilot evaluation of 24 representative multi-user tasks compared the framework against human-expert "ground truth" traces.
Key Results
- Effectiveness: The framework achieved a 75% success rate, vastly outperforming the best baseline (AdbGPT at 29.2%).
- Human-Like Behavior: Agent actions were 85.9% similar to those of human experts.
- Efficiency: The time required to automate a test case dropped from ~20 minutes to 2.46 minutes, an 87% reduction.
- Real-world Impact: Integration into TikTok’s "Fastbot" platform led to the discovery of 26 previously unknown bugs.
Discussion and Future Work
While successful, the system faces challenges related to LLM latency. The "2-second problem" occurs when interactive elements (like scrolling comments) disappear before the LLM finishes processing. Additionally, cross-app interactions and UI ambiguity remain areas for improvement. Future research will focus on utilizing smaller, faster local LLMs to reduce latency and enhance performance on time-sensitive tasks.
Summary updated