WebCQ:面向可扩展Web GUI测试的协作式多智能体深度强化学习
WebCQ: Cooperative Multi-Agent Deep Reinforcement Learning for Scalable Web GUI Testing
AI总结:
提出WebCQ方法,利用QTRAN和轻量同步机制实现多智能体协调,通过动作向量与策略网络在动态动作空间中进行DQN决策,在8个大型商业网站上比MARG多探索33.3%状态、执行42.2%独特动作,并触发更多故障。
摘要:
基于多智能体强化学习(MARL)的技术在GUI测试中显示出潜力。然而,随着现代GUI软件复杂性的增加,现有的MARL方法(如MARG和Fastbot)由于其底层表格强化学习算法的固有限制而难以扩展。这限制了它们在大规模商业GUI软件(尤其是具有巨大状态空间和许多交互元素的Web应用程序)中的适用性。为填补这一空白,我们提出了WebCQ,一种新颖的基于MARL的可扩展Web GUI测试方法。WebCQ集成了QTRAN用于多智能体协调和轻量级同步机制,使其能够在异步Web测试场景下工作。它为每个UI事件提取语义和探索特征以形成动作向量。该向量与当前状态向量拼接后输入策略网络,从而在动态动作空间中实现基于DQN的决策。我们在八个大型商业网站上评估了WebCQ。在相同时间预算和智能体数量下,WebCQ比MARG多探索了33.3%的状态,执行了42.2%的独特动作,同时在八个被测网站中的六个上触发了更多故障。它还表现出强大的可扩展性,在20小时实验中保持更高的动作吞吐量,并随着智能体数量增加实现更大的性能提升。这些结果表明,WebCQ克服了现有MARL方法的关键限制,为增强现代Web GUI测试提供了可扩展且有效的解决方案。
英文摘要:
Multi-agent reinforcement learning (MARL)-based techniques have shown promise for GUI testing. However, as the complexity of modern GUI software increases, existing MARL-based approaches (e.g., MARG and Fastbot) struggle to scale due to the inherent limitations of their underlying tabular reinforcement learning algorithms. This limits their applicability to large-scale commercial GUI software, especially web applications with vast state spaces and many interactive elements. To fill this gap, we propose WebCQ, a novel MARL-based approach for scalable web GUI testing. WebCQ incorporates QTRAN for multi-agent coordination and a lightweight synchronization mechanism, allowing it to work under asynchronous web testing scenarios. It extracts semantic and exploration features for each UI event to form an action vector. This vector is concatenated with the current state vector and fed into the policy network, enabling DQN-based decision making within a dynamic action space. We evaluated WebCQ on eight large-scale commercial websites. Under the same time budget and agent count, WebCQ explored 33.3% more states and executed 42.2% more unique actions than MARG, while triggering more failures on six of the eight websites under test. It also demonstrated strong scalability, maintaining higher action throughput during 20-hour experiments, and achieving greater performance improvements as the number of agents increased. These results show that WebCQ overcomes key limitations of existing MARL-based approaches, providing a scalable and effective solution to enhance modern web GUI testing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。