一句话:Mimic 是一个自动化 UI 兼容性测试系统,可跨设备、Android 版本和应用版本对比 UI 行为并检测兼容性问题。
针对 Android 应用在不同设备、系统版本和应用版本间 UI 行为一致性难以测试的问题,本文提出自动化 UI 兼容性测试系统 Mimic。它专为跨环境 UI 行为比较而设计,支持前向与后向兼容性测试,可对比稳定版与新版本应用,并允许随机、顺序等多种测试策略。Mimic 的编程模型让开发者以更少工作量编写测试脚本,且支持多设备并行测试以加速。作者针对各场景进行广泛评估,结果表明 Mimic 能有效检测前后向兼容性问题、验证应用运行时行为,并显著减轻开发负担。
This paper proposes Mimic, an automated UI compatibility testing system for Android apps. Mimic is designed specifically for comparing the UI behavior of an app across different devices, different Android versions, and different app versions. This design choice stems from a common problem that Android developers and researchers face–how to test whether or not an app behaves consistently across different environments or internal changes. Mimic allows Android app developers to easily perform backward and forward compatibility testing for their apps. It also enables a clear comparison between a stable version of app and a newer version of app. In doing so, Mimic allows multiple testing strategies to be used, such as randomized or sequential testing. Finally, Mimic programming model allows such tests to be scripted with much less developer effort than other comparable systems. Additionally, Mimic allows parallel testing with multiple testing devices and thereby speeds up testing time. To demonstrate these capabilities, we perform extensive tests for each of the scenarios described above. Our results show that Mimic is effective in detecting forward and backward compatibility issues, and verify runtime behavior of apps. Our evaluation also shows that Mimic significantly reduces the development burden for developers.