Agent for User: Testing Multi - User Interactive Features in TikTok

Sidong Feng, Changhao Du, Huaxiao Liu, Qingnan Wang, Zhengwei Lv, Gang Huo, Xu Yang, Chunyang ChenSEIP@ICSE 2025

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.

Coordination of multi-user interactions between User 1 and User 2.

Testing these features is exceptionally difficult due to two primary factors:

  1. Device Management: Developers must manage a fleet of physical or virtual devices simultaneously.
  2. 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.

The multi-agent task automation architecture showing task allocation and assignment.

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

BibTeX
@inproceedings{feng2025agent,
  author = {Sidong Feng and Changhao Du and Huaxiao Liu and Qingnan Wang and Zhengwei Lv and Gang Huo and Xu Yang and Chunyang Chen},
  title = {{Agent for User: Testing Multi - User Interactive Features in TikTok}},
  booktitle = {SEIP@ICSE},
  year = {2025},
}
Figure