arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.19053cs.SE
收藏

使用多模态LLM进行Android应用非崩溃功能性Bug检测的研究

A Study of Using Multimodal LLMs for Non-Crash Functional Bug Detection in Android Apps

Bangyan Ju, Jin Yang, Tingting Yu, Tamerlan Abdullayev, Yuanyuan Wu, Dingbang Wang, Yu Zhao

AI总结:

针对传统GUI测试难以检测非崩溃功能性(NCF)Bug的问题,本研究实证探索了利用多模态LLM作为测试预言机检测Android应用NCF Bug的有效性,发现其检测率达49%并新发现24个未知Bug,揭示了该方法的潜力与局限。

摘要:

目前已经开发了许多采用各种策略的方法来测试移动应用的图形用户界面(GUI)。然而,传统的GUI测试技术(如随机测试和基于模型的测试)主要侧重于生成在实现高代码覆盖率方面表现出色的测试序列,但往往无法作为有效的测试预言机来检测非崩溃功能性(NCF)Bug。为了解决这些局限性,本研究实证调查了利用大型语言模型(LLM)作为测试预言机来检测Android应用中NCF Bug的能力。我们的直觉是,LLM的训练语料库包含大量移动应用使用和Bug报告描述,使其具备了与NCF Bug检测相关的领域知识。我们进行了一项全面的实证研究,在71个有详细文档记录的NCF Bug上探索了LLM作为测试预言机检测Android应用中NCF Bug的有效性。结果表明,LLM实现了49%的Bug检测率,优于现有的Android应用NCF Bug检测工具。此外,通过利用LLM作为测试预言机,我们成功在64个Android应用中检测到24个以前未知的NCF Bug,其中四个Bug已被确认或修复。然而,我们也发现了LLM的局限性,主要与性能下降、固有的随机性和误报有关。我们的研究强调了利用LLM作为Android NCF Bug检测测试预言机的潜力,并提出了未来研究的方向。

英文摘要:

Numerous approaches employing various strategies have been developed to test the graphical user interfaces (GUIs) of mobile apps. However, traditional GUI testing techniques, such as random and model-based testing, primarily focus on generating test sequences that excel in achieving high code coverage but often fail to act as effective test oracles for non-crash functional (NCF) bug detection. To tackle these limitations, this study empirically investigates the capability of leveraging large language models (LLMs) to be test oracles to detect NCF bugs in Android apps. Our intuition is that the training corpora of LLMs, encompassing extensive mobile app usage and bug report descriptions, enable them with the domain knowledge relevant to NCF bug detection. We conducted a comprehensive empirical study to explore the effectiveness of LLMs as test oracles for detecting NCF bugs in Android apps on 71 well-documented NCF bugs. The results demonstrated that LLMs achieve a 49% bug detection rate, outperforming existing tools for detecting NCF bugs in Android apps. Additionally, by leveraging LLMs to be test oracles, we successfully detected 24 previously unknown NCF bugs in 64 Android apps, with four of these bugs being confirmed or fixed. However, we also identified limitations of LLMs, primarily related to performance degradation, inherent randomness, and false positives. Our study highlights the potential of leveraging LLMs as test oracles for Android NCF bug detection and suggests directions for future research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑