一句话:提出 APPTESTMIGRATOR,利用功能相似 App 间用户界面的共性,把一个 App 的测试用例自动迁移到另一个 App。
移动应用测试成本高昂,而为每个 App 单独编写测试会带来大量重复工作。该文提出 APPTESTMIGRATOR:同类 App(如银行类应用)在功能上往往存在相似性,这种相似性会体现为概念上相近的用户界面,而功能正是通过这些界面被访问的。基于这一直觉,给定源 App 的测试用例与目标 App,APPTESTMIGRATOR 尝试自动把源测试中的事件序列与判定(oracle)转换为目标 App 中的事件序列与判定,从而实现测试迁移。作者在 Android 平台上实现了该技术,并从 Google Play 商店中四个不同类别里随机选取应用进行评估。初步结果表明测试迁移是可行的,验证了作者的直觉,并激励后续研究。
The use of mobile apps is increasingly widespread, and much effort is put into testing these apps to make sure they behave as intended. To reduce this effort, and thus the overall cost of mobile app testing, we propose APPTESTMIGRATOR, a technique for migrating test cases between apps in the same category (e.g., banking apps). The intuition behind APPTESTMIGRATOR is that many apps share similarities in their functionality, and these similarities often result in conceptually similar user interfaces (through which that functionality is accessed). APPTESTMIGRATOR leverages these commonalities between user interfaces to migrate existing tests written for an app to another similar app. Specifically, given (1) a test case for an app (source app) and (2) a second app (target app), APPTESTMIGRATOR attempts to automatically transform the sequence of events and oracles in the test for the source app to events and oracles for the target app. We implemented APPTESTMIGRATOR for Android mobile apps and evaluated it on a set of randomly selected apps from the Google Play Store in four different categories. Our initial results are promising, support our intuition that test migration is possible, and motivate further research in this direction.
DOI 原文 ·
@inproceedings{paperbot5227,
title = {Test Migration Between Mobile Apps with Similar Functionality},
author = {Farnaz Behrang and Alessandro Orso},
booktitle = {ASE},
year = {2019},
doi = {10.1109/ase.2019.00016}
}