arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.01471cs.SEcs.AI
收藏

自主测试修复的实践极限:基于LLM驱动发现与自我校正的多智能体案例研究

Practical Limits of Autonomous Test Repair: A Multi-Agent Case Study with LLM-Driven Discovery and Self-Correction

Independent Researcher(独立研究者)

Hyukjoo Lee

AI总结:

本文通过多智能体系统在企业UI测试中的应用,探讨自主测试的限制,发现受限自主性能提升系统稳定性与可靠性,需结合验证边界和人工监督。

摘要:

在大型企业应用中维护可靠的UI测试套件是一个持续且昂贵的挑战。本文介绍了基于大型语言模型、LangGraph编排、Playwright执行和RAG知识库的多智能体自主测试系统案例研究。该系统从人工主导的测试演进到高自主性特征发现和测试执行:在没有显式测试目标的情况下,它在10个UI屏幕上发现了超过100个可测试的特征,通过运行时DOM分析动态扩展覆盖范围,并通过迭代修复失败测试而不需人工干预。我们分析了300个连续的自主执行报告,涵盖636个单独的测试用例执行,涉及10个不同的场景家族。系统在场景家族层面达到了70%的修复收敛率,平均3.4次修复迭代。然而,只有10%的场景家族在首次尝试中成功,38%的报告未能生成任何可执行的测试工件,并记录了具体的断言弱化和测试用例删除实例作为 workaround 机制以实现表面收敛。我们的发现表明,无限制的自主性导致不稳定且常常误导的结果,而受限的自主性将此类系统转化为操作上可行的工作流。而不是倡导完全的自主性,我们的发现表明,在企业规模的设置中,可靠的自主测试需要显式的约束、验证边界和人工监督,以保持语义正确性和操作可信度。

英文摘要:

Maintaining reliable UI test suites in large-scale enterprise applications is a persistent and costly challenge. We present an industrial case study of a multi-agent autonomous testing system evaluated using anonymized execution data from a production-like enterprise UI testing prototype. The application features several hundred dynamic UI elements per screen. Built on a large language model with LangGraph orchestration, Playwright execution, and a RAG knowledge base, the system evolves from human-directed testing toward High-autonomy feature discovery and test execution: given no explicit test targets, it discovers over 100 testable features across 10 UI screens, dynamically expands coverage by an additional 15--30 features through runtime DOM analysis, and iteratively repairs failing tests without human intervention. We analyzed 300 consecutive autonomous execution reports encompassing 636 individual test-case executions across 10 distinct scenario families. The system achieved a 70% repair convergence rate at the scenario-family level, with a mean of 3.4 repair iterations to convergence. However, only 10% of scenario families succeeded on first attempt, 38% of reports failed to produce any executable test artifact, and we documented concrete instances of assertion weakening and test-case deletion used as workaround mechanisms to achieve superficial convergence. Our findings show that unrestricted autonomy leads to unstable and often misleading outcomes, while constrained autonomy transforms such systems into operationally viable workflows. Rather than advocating full autonomy, our findings suggest that reliable autonomous testing in enterprise-scale settings requires explicit constraints, validation boundaries, and human oversight to preserve semantic correctness and operational trustworthiness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑