Automated Soap Opera Testing Directed by LLMs and Scenario Knowledge: Feasibility, Challenges, and Road Ahead

Yanqi Su, Zhenchang Xing, Chong Wang, Chunyang Chen, Xiwei Xu, Qinghua Lu, Liming Zhu

This paper, recently published by researchers from the Australian National University, CSIRO’s Data61, and other institutions, explores the automation of one of the most "human" aspects of software quality assurance: Soap Opera Testing.

TL;DR

The authors present a multi-agent LLM framework that automates "Soap Opera Testing"—complex, scenario-based exploratory testing—by grounding AI agents with a Scenario Knowledge Graph (SKG). The system successfully identified 34 bugs in major Android apps (Firefox, WordPress, AntennaPod), with 16 already confirmed or fixed by developers.

What Problem Does This Paper Address?

Exploratory Testing (ET) is the "detective work" of software testing. Unlike scripted tests that follow a rigid path, ET relies on a tester’s intuition and creativity to find unexpected bugs. A specific subset, Soap Opera Testing, involves creating "dramatic," convoluted scenarios that mimic real-world, messy user behavior.

While highly effective, this process is almost entirely manual and doesn't scale. Traditional automation struggles here because:

  1. Vague Instructions: User manuals and bug reports often have missing or outdated UI steps.
  2. Oracle Problem: It is difficult to programmatically define what a "bug" looks like in a complex, dynamic UI without a human's "common sense."
  3. Creative Boundaries: Automation usually sticks to the "happy path," whereas bugs often hide in the "side quests" of an application.

Methods

The researchers developed a multi-agent system where three specialized agents (powered by GPT-4o) collaborate:

  • The Planner: Takes a high-level natural language goal (e.g., "Move a bookmark") and uses a Scenario Knowledge Graph (SKG) to break it down into actionable sub-steps, filling in gaps where instructions are missing.
  • The Player: Translates these sub-steps into technical UI commands (tap, scroll, input). To help the LLM "see" the screen, the system overlays a 100x100px grid on screenshots, allowing the agent to reference numeric labels rather than precise x-y coordinates.
  • The Detector: Acts as the critic. After every action, it retrieves "oracles" (expected behaviors) from the SKG and uses "creative thinking" to determine if the current UI state looks buggy or inconsistent.

The "secret sauce" is the Scenario Knowledge Graph (SKG). Built from thousands of historical bug reports and user manuals, it provides the agents with domain-specific "symbolic" knowledge that a general-purpose LLM lacks.

Datasets

The system was evaluated on three popular open-source Android applications:

  • Firefox: A complex browser with a massive history of bug reports.
  • WordPress: A content management tool with intricate UI flows.
  • AntennaPod: A podcast manager used to test media playback scenarios.

The SKG was populated using data from 7,947 Firefox bug reports, 21,010 WordPress GitHub issues, and 7,317 AntennaPod issues. The evaluation itself used a dataset of 30 "Soap Opera" test scenarios.

Key Insights and Ideas

  • The Power of RAG in Testing: LLMs are prone to "hallucinating" UI elements. By using Retrieval-Augmented Generation (RAG) to pull real-world steps and oracles from the SKG, the agents stayed grounded in the actual functionality of the app.
  • Accidental Creativity: In a surprising twist, the authors found that the Player's occasional inaccuracies (e.g., clicking the "Share" button instead of the "Menu" button) actually led to the discovery of new bugs. This suggests that a degree of "controlled randomness" is a feature, not a bug, in exploratory testing.
  • Neural vs. Symbolic Synergy: The paper highlights that neither LLMs (neural) nor Knowledge Graphs (symbolic) are enough on their own. The LLM provides the reasoning and vision, while the KG provides the "memory" and domain expertise.

Key Results

  • Bug Discovery: The system identified 34 unique bugs. At the time of writing, 3 were fixed, 13 confirmed, and 6 assigned priority by the app developers.
  • Agent Performance: The Planner achieved 92% accuracy in identifying the next logical step, while the Player had an 84% success rate in parsing those steps into UI instructions.
  • Ablation Study: The importance of the Knowledge Graph was undeniable. Without the SKG, the bug detection accuracy for Firefox dropped from 51.6% to 21.6%.

Limitations and Future Work

Despite the success, a significant gap remains between AI and human testers:

  • High False Positives: About 38% of the AI's "bug reports" were actually "unnecessary improvement suggestions" or hallucinations.
  • Static Vision: Because the system relies on screenshots, it can miss bugs that occur during animations or transitions (e.g., a flickering screen).
  • The Road Ahead: The authors suggest moving toward video-based understanding to capture temporal bugs and developing Human-AI co-learning frameworks where AI behavior inspires human testers and vice versa. They also propose linking the Scenario Knowledge Graph directly to source code to help developers identify the root cause of discovered bugs automatically.

Summary updated

BibTeX
@article{su2025automated,
  author = {Yanqi Su and Zhenchang Xing and Chong Wang and Chunyang Chen and Xiwei Xu and Qinghua Lu and Liming Zhu},
  title = {{Automated Soap Opera Testing Directed by LLMs and Scenario Knowledge: Feasibility, Challenges, and Road Ahead}},
  journal = {Proc. ACM Softw. Eng.},
  year = {2025},
  doi = {10.1145/3715752},
}
Figure