arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14611cs.SE
收藏

NiCro:纯视觉、非侵入式的跨设备与跨平台 GUI 测试

NiCro: Purely Vision-based, Non-intrusive Cross-Device and Cross-Platform GUI Testing

Mulong Xie, Jiaming Ye, Zhenchang Xing, Lei Ma

AI总结:

提出非侵入式跨设备与跨平台GUI测试系统NiCro,利用最先进控件检测器和多模态匹配方法,结合虚拟设备集群与机械臂实现自动化测试,在8种设备28个应用的107个测试用例中验证了有效性。

摘要:

为了确保应用程序在各类设备和平台上的兼容性及用户体验的流畅性,开发者必须对其应用进行跨设备、跨平台测试,这是一项极其费力的工作。近期出现了一种日益增长的趋势,即利用录制与重放方法来简化测试过程。然而,应用程序在不同设备和平台上运行时的图形用户界面(GUI)差异巨大。这使得录制与重放过程变得复杂,因为在录制阶段和重放阶段,GUI 控件的存在性、外观和布局可能会不一致。现有技术依赖于对底层系统进行插桩以获取应用元数据,从而在各种设备之间进行控件识别和匹配。但这种侵入式做法受限于不同平台上元数据的可访问性和准确性。另一方面,近期有几项研究尝试通过分析 GUI 图像来提取 GUI 信息。然而,它们的性能受到所采用的初级视觉方法的限制,并且未能考虑到同一 GUI 在不同设备上显示时的差异。为了应对这一挑战,我们提出了一种非侵入式的跨设备与跨平台系统 NiCro。NiCro 利用最先进的 GUI 控件检测器从 GUI 图像中检测控件,随后分析一组综合信息以在各类设备间匹配控件。在系统层面,NiCro 能够与虚拟设备集群和机械臂系统交互,非侵入式地执行跨设备、跨平台测试。我们首先通过将 NiCro 的多模态控件与 GUI 匹配方法与 4 种常用匹配技术进行比较,对 NiCro 进行了评估。随后,我们进一步在 8 种不同设备上检验了其整体性能,使用它录制并重放了 28 个热门应用及主页的 107 个测试用例,以展示其有效性。

英文摘要:

To ensure app compatibility and smoothness of user experience across diverse devices and platforms, developers have to perform cross-device, cross-platform testing of their apps, which is laborious. There comes a recently increasing trend of using a record and replay approach to facilitate the testing process. However, the graphic user interface (GUI) of an app running on different devices and platforms differs dramatically. This complicates the record and replay process as the presence, appearance and layout of the GUI widgets in the recording phase and replaying phase can be inconsistent. Existing techniques resort to instrumenting into the underlying system to obtain the app metadata for widget identification and matching between various devices. But such intrusive practices are limited by the accessibility and accuracy of the metadata on different platforms. On the other hand, several recent works attempt to derive the GUI information by analyzing the GUI image. Nevertheless, their performance is curbed by the applied preliminary visual approaches and the failure to consider the divergence of the same GUI displayed on different devices. To address the challenge, we propose a non-intrusive cross-device and cross-platform system NiCro. NiCro utilizes the state-of-the-art GUI widget detector to detect widgets from GUI images and then analyses a set of comprehensive information to match the widgets across diverse devices. At the system level, NiCro can interact with a virtual device farm and a robotic arm system to perform cross-device, cross-platform testing non-intrusively. We first evaluated NiCro by comparing its multi-modal widget and GUI matching approach with 4 commonly used matching techniques. Then, we further examined its overall performance on 8 various devices, using it to record and replay 107 test cases of 28 popular apps and the home page to show its effectiveness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑