一句话:提出实用性质基测试工具 Kea2,支持 Python 属性规约并复用 GUI 模糊测试,可发现移动应用功能缺陷。
移动应用的功能正确性验证对人工测试和自动化 UI 测试都很困难,后者多局限于崩溃类简单缺陷。属性基测试通过检查功能性质为此提供了思路,但缺乏实用工具。本文提出 Kea2:一个面向移动应用的实用属性基测试工具。它允许用 Python 灵活且富有表现力地指定性质,并复用已有 GUI 模糊测试技术来支持有效的性质检查。Kea2 能在真实世界应用中发现功能(逻辑)缺陷;工具已开源,并因其可用性和特性获得积极反馈。评估主要通过真实应用缺陷发现、开源发布和演示视频展示其实际可用性。
Validating functional correctness of mobile apps is challenging for manual testing and automated UI testing (limited to simple crashing bugs). Property-based testing is promising to tackle this challenge given functional properties. To this end, we introduce Kea2, a practical property-based testing tool for apps: (1) specifying properties in Python with enough flexibility and expressiveness; and (2) reusing existing GUI fuzzing techniques to support effective property checking. Indeed, Kea2 can find functional (logic) bugs in real-world apps. Kea2 has been open-sourced at https://github.com/ecnusse/Kea2 (a demo video: https://youtu.be/HS4rTCcaSPE), and received positive feedback for its usability and features.