paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Badge: Prioritizing UI Events with Hierarchical Multi-Armed Bandits for Automated UI Testing

Badge:基于分层多臂老虎机的 UI 事件优先级排序用于自动化 UI 测试
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)2023匹配度 2/10 · 该论文聚焦移动应用自动化 UI 测试与多臂老虎机事件优先级,属于软件测试方向;与用户核心关注的静态分析、LLM/Agent 程序分析、浮点程序分析和贝叶斯程序分析没有直接交集。虽然其工业级评估和问题驱动动机符合部分研究偏好,但主题匹配度较低。引用 19 inbox
Dezhi Ran, Hao Wang, Wenyu Wang, Tao Xie
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 Badge,用分层多臂老虎机同时估计 UI 事件的探索价值与探索多样性,以提升自动化 UI 测试效果。

自动化 UI 测试通过触发 UI 事件来提升覆盖率并发现崩溃,但既有事件优先级策略通常只估计探索价值,忽略同一事件多次触发所覆盖代码实体的探索多样性,导致在复杂应用上效果不佳。为此,论文提出 Badge:一种分层多臂老虎机模型,它基于该事件的历史探索以及同一 UI 组内事件的历史探索,联合估计 UI 事件的探索价值与探索多样性,并据此优先选择事件。作者在 21 个广泛使用的工业应用上评估 Badge,结果显示其相对当前最优/最佳实践工具取得 18%-146% 的代码覆盖率相对提升,发现 1.19-5.20 倍的唯一崩溃;进一步消融实验验证了 Badge 各算法的贡献。

问题
自动化 UI 测试需要在不进行人工干预的情况下触发 UI 事件,以最大化代码覆盖率并发现唯一崩溃;现有事件优先级策略仅估计探索价值,忽略探索多样性,导致复杂应用上的测试效果受限。
方法
论文提出 Badge,设计分层多臂老虎机模型,结合当前事件与同一 UI 组内事件的历史探索,联合估计 UI 事件的探索价值与探索多样性,以指导事件优先级排序。
评估
在 21 个流行的工业级应用上评估,Badge 相比当前最优/最佳实践工具获得 18%-146% 的相对代码覆盖率提升,发现 1.19-5.20 倍唯一崩溃;消融研究进一步验证其各算法的收益。
原文摘要(Abstract)

To assure high quality of mobile applications (apps for short), automated UI testing triggers events (associated with UI elements on app UIs) without human intervention, aiming to maximize code coverage and find unique crashes. To achieve high test effectiveness, automated UI testing prioritizes a UI event based on its exploration value (e.g., the increased code coverage of future exploration rooted from the UI event). Various strategies have been proposed to estimate the exploration value of a UI event without considering its exploration diversity (reflecting the variance of covered code entities achieved by explorations rooted from this UI event across its different triggerings), resulting in low test effectiveness, especially on complex mobile apps. To address the preceding problem, in this paper, we propose a new approach named Badge to prioritize UI events considering both their exploration values and exploration diversity for effective automated UI testing. In particular, we design a hierarchical multi-armed bandit model to effectively estimate the exploration value and exploration diversity of a UI event based on its historical explorations along with historical explorations rooted from UI events in the same UI group. We evaluate Badge on 21 highly popular industrial apps widely used by previous related work. Experimental results show that Badge outperforms state-of-the-art/practice tools with 18%-146% relative code coverage improvement and finding 1.19-5.20 × unique crashes, demonstrating the effectiveness of Badge. Further experimental studies confirm the benefits brought by Badge's individual algorithms.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{RanWWX23,
  title = {Badge: Prioritizing UI Events with Hierarchical Multi-Armed Bandits for Automated UI Testing},
  author = {Dezhi Ran and Hao Wang and Wenyu Wang and Tao Xie},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00083}
}