arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1710.08562cs.SE
收藏

DroidWalker:通过自动探索Android应用程序生成可再现的测试用例

DroidWalker: Generating Reproducible Test Cases via Automatic Exploration of Android Apps

Ziniu Hu, Yun Ma, Yangyang Huang

摘要:

通过自动应用探索生成测试用例对于分析和测试Android应用非常有用。然而,当前应用程序探索工具生成的测试用例是不可复制的,即当重新执行生成的测试用例时,应用程序无法达到与探索的应用程序相同的状态。因此,应用程序开发人员无法重现探索期间报告的故障或崩溃,无法在修复错误后进行回归测试,也无法在不同的环境中执行相同的测试。在本文中,我们提出了DroidWalker,一个动态分析工具,以生成可重复的测试用例的Android应用程序。我们的工具的关键设计是一个动态自适应模型,它可以以适当的粒度抽象应用程序状态,以便之后可以到达模型中的每个状态。给定一个正在测试的应用程序,DroidWalker首先探索该应用程序以构建模型。然后,开发人员可以选择模型中要复制的状态。最后,DroidWalker执行所有生成的测试用例,应用程序可以达到与探索的状态完全相同的状态。我们将DroidWalker应用于三个实际使用场景,以展示其实际用途。我们的工具的视频在https://youtu.be/ndUD8Gxs800。

英文摘要:

Generating test cases through automatic app exploration is very useful for analyzing and testing Android apps. However, test cases generated by current app-exploration tools are not reproducible, i.e. when the generated test case is re-executed, the app cannot reach the same state as the explored one. As a result, app developers are not able to reproduce the failure or crash reported during the exploration, to conduct regression test after fixing the bug, or to execute the same test in different environments. In this paper, we present DroidWalker, a dynamic-analysis tool to generate reproducible test cases for Android apps. The key design of our tool is a dynamic-adaptive model that can abstract the app state in a proper granularity so every state in the model can be reached afterwards. Given an app under test, DroidWalker first explores the app to build the model. Then developers can select the state in the model to be reproduced. Finally, DroidWalker executes all the generated test cases and the app could reach exactly the same state as the explored one. We apply DroidWalker in three real usage scenarios to demonstrate its practical usage. The video of our tool is at https://youtu.be/ndUD8Gxs800.

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

↑