StatePortal:面向交互式软件深层状态测试的代理式检查点合成

·

研究论文 · 2026/11/19

StatePortal 是一个智能体,能够根据自然语言功能测试用例和只读源代码访问,合成检查点(可版本化和重放的恢复状态工件),以解决交互式软件中深度状态测试的瓶颈。检查点通过每应用钩子恢复,该钩子由引导智能体一次性绑定或合成,无需手写代码。由于检查点可能满足状态检查但渲染错误,采用混合程序化状态和视觉评估进行评分,视觉评估器以盲法跨VLM参考进行校准。发布的 DeepStateBench 包含10个交互应用的61个深度状态任务,跨越5个语言家族和6种渲染栈,源代码规模从874到720万行。在三个注册模型上,使用合成检查点播种的GUI智能体完成10.4%的试验,而无播种时为0%;StatePortal 通过钩子传递目标动作,完成27.5%。在112个检查点的1361次重放中,98.90%重现原始判定且零模型调用,混合评估器检测到96.25%(77/80)的程序化状态检查不可见的受控视觉故障。

该研究解决了交互式软件测试中深度状态难以到达的关键瓶颈,提出了自动合成检查点的新方法,并发布了涵盖多语言多渲染栈的基准测试,实验证明了方法的有效性和可重复性,对GUI自动化测试领域有重要推动意义。

Large language models have reduced the effort to generate code for interactive software with graphical user interfaces (GUIs). For such software, a key testing bottleneck is reaching a deep state, one that requires a long interaction history. The cost of reaching it recurs across commits, and the GUI automation that could amortize it assumes a DOM or accessibility tree that self-rendered engines do not expose. We introduce StatePortal, an agent that synthesizes a checkpoint, an artifact that restores that state and can be versioned and replayed, from a natural-language functional test case and read-only access to the target's source code. The checkpoint is restored through a per-application hook that an onboarding agent binds or synthesizes once without hand-written hook code. Because a checkpoint can satisfy state checks while rendering incorrectly, checkpoints are scored by hybrid programmatic-state and visual evaluation: acceptance requires both a programmatic-state oracle and a visual oracle to pass. We calibrate the visual oracle against a blinded cross-VLM reference. We release DeepStateBench, 61 deep-state tasks across 10 interactive applications that span five language families and six rendering stacks, with source sizes from 874 to 7.2M lines. Across three registered models, a GUI agent seeded with synthesized checkpoints completes 10.4% of trials, compared with 0% without seeding under the same pixel action space, while StatePortal, which also delivers the target action through the hook, completes 27.5%. Over 1,361 replays of 112 checkpoints, 98.90% reproduce the original verdict with zero model calls, and the hybrid oracle detects 96.25% (77/80) of controlled visual faults invisible to programmatic-state checks alone. We open-source our code at https://github.com/pzy2000/State_Portal and website at https://stateportal.mineyosemite.chatgpt.site

阅读原文

参与讨论