paperbot · PL 论文追踪

全部论文 待读 收藏

P2 TestMig: migrating GUI test cases from iOS to Android

TestMig:将 GUI 测试用例从 iOS 迁移到 Android
ISSTA Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis2019匹配度 1/10 · 该论文研究 iOS 到 Android 的 GUI 测试用例自动迁移,属于移动应用测试/自动化测试领域,与用户画像中关注的静态分析(PL→AI)、LLM/Agent 改进分析验证、浮点程序分析、贝叶斯程序分析均无直接关联,也未涉及 LLM 或程序分析理论。引用 52 inbox
Xue Qin, Hao Zhong, Xiaoyin Wang
crossref: 2026-09-12

AI 速览

一句话:无需迁移样例,用 iOS GUI 事件序列引导 Android 探索,自动生成等价的 GUI 测试用例。

移动应用常需在两个平台之间迁移,而 GUI 测试的迁移极为繁琐且难以自动化:两大平台存在细微差异,且往往缺少已迁移的测试样例可供学习。本文提出 TestMig,一种无需任何迁移代码样本、将 iOS 的 GUI 测试用例迁移到 Android 的方法。TestMig 首先执行 iOS 版本的 GUI 测试并记录其 GUI 事件序列,再以这些 iOS 事件为引导,在 Android 版本的应用上探索并生成对应的 Android 事件序列,从而得到可执行的 Android 测试用例。作者在 2048、SimpleNote、Wire、Wikipedia 和 WordPress 五个知名移动应用上进行了评估:平均 80.2% 的 iOS UI 事件被正确转换为 Android UI 事件并成功执行,迁移后的 Android 测试用例取得了与原始 iOS 测试相近的语句覆盖率(59.7% 对 60.4%)。

问题
跨平台迁移移动应用时,GUI 测试用例的迁移工作量大且难以自动化,原因是 iOS 与 Android 存在细微差异,并且通常没有已迁移的测试可供学习。
方法
TestMig 先运行 iOS 版测试并记录其 GUI 事件序列,再以这些事件为引导在 Android 版应用上探索,生成并执行对应的 Android 事件序列,从而在无迁移样例的情况下完成测试迁移。
评估
在 2048、SimpleNote、Wire、Wikipedia、WordPress 五个应用上评估,平均将 80.2% 的 iOS UI 事件正确转换为可成功执行的 Android UI 事件,迁移后测试的语句覆盖率与原始 iOS 测试相当(59.7% vs 60.4%)。
原文摘要(Abstract)

Nowadays, Apple iOS and Android are two most popular platforms for mobile applications. To attract more users, many software companies and organizations are migrating their applications from one platform to the other, and besides source files, they also need to migrate their GUI tests. The migration of GUI tests is tedious and difficult to be automated, since two platforms have subtle differences and there are often few or even no migrated GUI tests for learning. To address the problem, in this paper, we propose a novel approach, TestMig, that migrates GUI tests from iOS to Android, without any migrated code samples. Specifically, TestMig first executes the GUI tests of the iOS version, and records their GUI event sequences. Guided by the iOS GUI events, TestMig explores the Android version of the application to generate the corresponding Android event sequences. We conducted an evaluation on five well known mobile applications: 2048, SimpleNote, Wire, Wikipedia, and WordPress. The results show that, on average, TestMig correctly converts 80.2% of recorded iOS UI events to Android UI events and have them successfully executed, and our migrated Android test cases achieve similar statement coverage compared with the original iOS test cases (59.7% vs 60.4%).

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot5377,
  title = {TestMig: migrating GUI test cases from iOS to Android},
  author = {Xue Qin and Hao Zhong and Xiaoyin Wang},
  booktitle = {ISSTA},
  year = {2019},
  doi = {10.1145/3293882.3330575}
}