一句话:提出 V2S,利用计算机视觉将 Android 应用录屏自动转换为可重放测试场景。
移动应用录屏易于获取且包含丰富反馈,但其图形化特性使自动分析困难。本文提出 V2S,一种轻量级自动化方法,主要用计算机视觉技术,并采用目标检测与图像分类来识别视频中的用户操作,将其转换为可重放测试场景。作者评估了 175 个视频、3,534 个 GUI 操作,来自 80 多个流行 Android 应用,覆盖功能使用与缺陷复现。结果显示 V2S 能准确重放录屏场景,以较小开销复现约 89% 的视频;三个工业合作方的案例研究也表明其开发实用价值。
Screen recordings of mobile applications are easy to obtain and capture a wealth of information pertinent to software developers (e.g., bugs or feature requests), making them a popular mechanism for crowdsourced app feedback. Thus, these videos are becoming a common artifact that developers must manage. In light of unique mobile development constraints, including swift release cycles and rapidly evolving platforms, automated techniques for analyzing all types of rich software artifacts provide benefit to mobile developers. Unfortunately, automatically analyzing screen recordings presents serious challenges, due to their graphical nature, compared to other types of (textual) artifacts. To address these challenges, this paper introduces V2S, a lightweight, automated approach for translating video recordings of Android app usages into replayable scenarios. V2S is based primarily on computer vision techniques and adapts recent solutions for object detection and image classification to detect and classify user actions captured in a video, and convert these into a replayable test scenario. We performed an extensive evaluation of V2S involving 175 videos depicting 3,534 GUI-based actions collected from users exercising features and reproducing bugs from over 80 popular Android apps. Our results illustrate that V2S can accurately replay scenarios from screen recordings, and is capable of reproducing ≈89% of our collected videos with minimal overhead. A case study with three industrial partners illustrates the potential usefulness of V2S from the viewpoint of developers.
@inproceedings{paperbot5631,
title = {Translating video recordings of mobile app usages into replayable scenarios},
author = {Carlos Bernal-Cárdenas and Nathan Cooper and Kevin Moran and Oscar Chaparro and Andrian Marcus and Denys Poshyvanyk},
booktitle = {ICSE},
year = {2020},
doi = {10.1145/3377811.3380328}
}