一句话:提出通过构建 Activity 启动上下文实现 Android 应用多入口 GUI 测试,以覆盖单入口难以到达的边缘 Activity。
现有 Android 应用 GUI 测试通常从单一入口出发,导致距离默认入口较远的边缘 Activity 难以被覆盖:它们可能需要大量 Activity 跳转或复杂用户操作才能启动,从而造成 Activity 组件覆盖不均。同时,GUI 程序测试空间无限,单入口方法难以在完整启动上下文下测试 Activity。本文提出多入口测试思路,通过构造 Activity 的启动上下文来直接触达这些边缘组件,从而绕过冗长且复杂的入口路径,提升对 Activity 组件的覆盖能力,并缓解启动上下文不完整的问题。
Existing GUI testing approaches of Android apps usually test apps from a single entry. In this way, the marginal activities far away from the default entry are difficult to be covered. The marginal activities may fail to be launched due to requiring a great number of activity transitions or involving complex user operations, leading to uneven coverage on activity components. Besides, since the test space of GUI programs is infinite, it is difficult to test activities under complete launching contexts using single-entry testing approaches.
DOI 原文 ·
@inproceedings{paperbot5608,
title = {Multiple-entry testing of Android applications by constructing activity launching contexts},
author = {Jiwei Yan and Hao Liu and Linjie Pan and Jun Yan and Jian Zhang and Bin Liang},
booktitle = {ICSE},
year = {2020},
doi = {10.1145/3377811.3380347}
}