paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Automata-Based Trace Analysis for Aiding Diagnosing GUI Testing Tools for Android

基于自动机的轨迹分析:辅助诊断 Android GUI 测试工具
FSE Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering2023匹配度 2/10 · 该论文聚焦 Android GUI 测试工具的诊断与基准增强,使用自动机分析动态事件轨迹,属于软件测试/动态分析方向;它与用户核心关注的 ML/Agentic 程序静态分析、LLM 辅助静态分析/形式化验证、浮点或贝叶斯程序分析均无直接交集。虽然涉及自动机、基准和工具落地,但与“PL 与 AI 交叉”的研究画像匹配度较低。引用 4 inbox
Enze Ma, Shan Huang, Weigang He, Ting Su, Jue Wang, Huiyu Liu, Geguang Pu, Zhendong Su
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出基于自动机的轨迹分析,为 Android GUI 测试工具诊断漏报缺陷提供线索,并增强 Themis 基准。

在 Android GUI 测试中,用已知缺陷评测测试工具难以给出漏报缺陷的线索,导致大量临时人工分析。本文提出基于自动机的轨迹分析:将缺陷建模为刻画触发轨迹的有限自动机,把测试工具生成的冗长事件轨迹与该自动机匹配,并以三个基于自动机的覆盖值给出诊断线索。作者据此增强 Android 基准套件 Themis,形成 Themis+。在九个先进 GUI 测试工具上评估并与开发者合作表明,Themis+ 的线索与人工分析结果一致或有用,发现了此前未知的工具弱点;两个工业工具据此快速优化并提升了缺陷发现能力,开发者反馈积极。

问题
已知缺陷基准评测难以解释测试工具为何漏报,仍需大量临时人工分析。
方法
将缺陷建模为有限自动机并匹配工具生成的事件轨迹,以三个自动机覆盖值给出线索,增强 Themis 为 Themis+。
评估
在九个先进 GUI 测试工具上评估并与工具开发者合作,验证线索与人工分析一致或有用。
原文摘要(Abstract)

Benchmarking software testing tools against known bugs is a classic approach to evaluating the tools’ bug finding abilities. However, this approach is difficult to give some clues on the tool-missed bugs to aid diagnosing the testing tools. As a result, heavy and ad hoc manual analysis is needed. In this work, in the setting of GUI testing for Android apps, we introduce an automata-based trace analysis approach to tackling the key challenge of manual analysis, i.e., how to analyze the lengthy event traces generated by a testing tool against a missed bug to find the clues. Our key idea is that, we model a bug in the form of a finite automaton which captures its bug-triggering traces; and match the event traces generated by the testing tool (which misses this bug) against this automaton to obtain the clues. Specifically, the clues are presented in the form of three designated automata-based coverage values. We apply our approach to enhance Themis, a representative benchmark suite for Android, to aid diagnosing GUI testing tools. Our extensive evaluation on nine state-of-the-art GUI testing tools and the involvement with several tool developers shows that our approach is feasible and useful. Our approach enables Themis+ (the enhanced benchmark suite) to provide the clues on the tool-missed bugs, and all the Themis+’s clues are identical or useful, compared to the manual analysis results of tool developers. Moreover, the clues have helped find several tool weaknesses, which were unknown or unclear before. Based on the clues, two actively-developing industrial testing tools in our study have quickly made several optimizations and demonstrated their improved bug finding abilities. All the tool developers give positive feedback on the usefulness and usability of Themis+’s clues. Themis+ is available at https://github.com/DDroid-Android/home.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@inproceedings{MaHH0WLP023,
  title = {Automata-Based Trace Analysis for Aiding Diagnosing GUI Testing Tools for Android},
  author = {Enze Ma and Shan Huang and Weigang He and Ting Su and Jue Wang and Huiyu Liu and Geguang Pu and Zhendong Su},
  booktitle = {FSE},
  year = {2023},
  doi = {10.1145/3611643.3616361}
}