一句话:提出 CraftDroid,利用信息检索与静态/动态分析将已有测试用例及 oracle 迁移到功能相似的其它移动应用。
移动应用的 GUI 测试长期受限于三点:缺少上下文相关的文本输入、难以生成表达力强的测试、以及缺乏测试 oracle。为此作者提出 CraftDroid 框架,借助信息检索技术并结合静态分析与动态分析,从某个应用已有的测试套件中提取人类知识,再通过语义映射把测试用例与 oracle 迁移到功能相似的其他应用上。在真实商业 Android 应用上的评估表明,该方法在迁移 GUI 事件与 oracle 时平均达到 73% 的精确率和 90% 的召回率;同时 75% 的迁移尝试成功为同类应用中的热门功能生成了有效的、基于特性的测试,验证了跨应用测试迁移的可行性。
GUI-based testing has been primarily used to examine the functionality and usability of mobile apps. Despite the numerous GUI-based test input generation techniques proposed in the literature, these techniques are still limited by (1) lack of context-aware text inputs; (2) failing to generate expressive tests; and (3) absence of test oracles. To address these limitations, we propose CraftDroid, a framework that leverages information retrieval, along with static and dynamic analysis techniques, to extract the human knowledge from an existing test suite for one app and transfer the test cases and oracles to be used for testing other apps with the similar functionalities. Evaluation of CraftDroid on real-world commercial Android apps corroborates its effectiveness by achieving 73% precision and 90% recall on average for transferring both the GUI events and oracles. In addition, 75% of the attempted transfers successfully generated valid and feature-based tests for popular features among apps in the same category.
DOI 原文 ·
@inproceedings{paperbot5296,
title = {Test Transfer Across Mobile Apps Through Semantic Mapping},
author = {Jun-Wei Lin and Reyhaneh Jabbarvand and Sam Malek},
booktitle = {ASE},
year = {2019},
doi = {10.1109/ase.2019.00015}
}