FuncDroid:面向综合移动应用GUI测试的跨功能流
FuncDroid: Towards Inter-Functional Flows for Comprehensive Mobile App GUI Testing
AI总结:
FuncDroid通过跨功能流导向的GUI测试方法,有效提升移动应用测试的覆盖率和bug检测能力。
摘要:
随着移动应用功能日益复杂且迭代速度加快,确保高可靠性面临显著挑战。尽管功能导向的GUI测试已引起越来越多的研究关注,但现有方法大多忽视功能间的交互,使其无法发现隐藏在跨功能行为中的深层次bug。为填补这一空白,我们首先设计了一个功能流图(FFG),一个明确捕捉应用程序功能单元及其跨功能交互的行为模型。基于FFG,我们进一步引入一种以跨功能流为导向的GUI测试方法,具有精确模型构建和深入bug检测的双重目标。该方法通过长短期记忆引导的测试过程实现。通过结合两种互补的测试生成视角,它可以自适应地细化功能边界,并在多种触发条件下系统地探索跨功能流。我们将该方法实现为一个名为FuncDroid的工具,并在两个基准上进行评估:(1)一个广泛使用的开源基准,包含50个可复现的崩溃bug;(2)一个多样化的52个流行商业应用集合。实验结果表明,FuncDroid在覆盖率(+28%)和bug检测数量(+107%)上均显著优于最先进的基线。此外,FuncDroid成功发现了18个此前未知的非崩溃功能bug,证实了其实际有效性。
英文摘要:
As mobile application (app) functionalities grow increasingly complex and their iterations accelerate, ensuring high reliability presents significant challenges. While functionality-oriented GUI testing has attracted growing research attention, existing approaches largely overlook interactions across functionalities, making them ineffective at uncovering deep bugs hidden in inter-functional behaviors. To fill this gap, we first design a Functional Flow Graph (FFG), a behavioral model that explicitly captures an app's functional units and their inter-functional interactions. Based on the FFG, we further introduce an inter-functional-flow-oriented GUI testing approach with the dual goals of precise model construction and deep bug detection. This approach is realized through a long-short-term-view-guided testing process. By combining two complementary test-generation views, it can adaptively refine functional boundaries and systematically explore inter-functional flows under diverse triggering conditions. We implement our approach in a tool called FuncDroid, and evaluate it on two benchmarks: (1) a widely-used open-source benchmark with 50 reproducible crash bugs and (2) a diverse set of 52 popular commercial apps. Experimental results demonstrate that FuncDroid significantly outperforms state-of-the-art baselines in both coverage (+28%) and bug detection number (+107%). Moreover, FuncDroid successfully uncovers 18 previously unknown non-crash functional bugs in commercial apps, confirming its practical effectiveness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。