一句话:提出 DroidMate-2,一个可定制、无需修改系统或应用插桩即可运行的 Android 测试生成平台。
Android 应用在软件市场中占比不断增长,自动测试输入生成器是测试与安全分析的先进手段。本文提出 DroidMate-2(DM-2),一个帮助开发者和研究者定制、开发与测试新测试生成器的平台。它无需应用插桩或操作系统修改,即可在真实设备与模拟器上作为测试生成器用于应用测试或回归测试;同时通过轻量插桩提供敏感资源监控或阻断能力,通过完整插桩开箱即用地测量语句覆盖率,并支持原生实验复现。实验以语句覆盖率为指标,与最先进的 DroidBot 对比:DM-2 在不到其 2/3 的时间内达到自身峰值覆盖率的 96%;在 5 分钟短运行中高出 7%,在 1 小时长运行中优势增至 8%。
Android applications (apps) represent an ever increasing portion of the software market. Automated test input generators are the state of the art for testing and security analysis. We introduce DroidMate-2 (DM-2), a platform to easily assist both developers and researchers to customize, develop and test new test generators. DM-2 can be used without app instrumentation or operating system modifications, as a test generator on real devices and emulators for app testing or regression testing. Additionally, it provides sensitive resource monitoring or blocking capabilities through a lightweight app instrumentation, out-of-thebox statement coverage measurement through a fully-fledged app instrumentation and native experiment reproducibility. In our experiments we compared DM-2 against DroidBot, a state-of-the-art test generator by measuring statement coverage. Our results show that DM-2 reached 96% of its peak coverage in less than 2/3 of the time needed by DroidBot, allowing for better and more efficient tests. On short runs (5 minutes) DM-2 outperformed DroidBot by 7% while in longer runs (1 hour) this difference increases to 8%. ACM DL Artifact: https://www.doi.org/10.1145/3264864