夜鹰:通过视觉理解全自动定位UI显示问题
Nighthawk: Fully Automated Localizing UI Display Issues via Visual Understanding
摘要:
图形用户界面(GUI)在软件应用程序和最终用户之间提供了一个可视化的桥梁,通过它,他们可以相互交互。随着移动设备的升级和审美的发展,GUI的视觉效果越来越吸引人,用户也越来越关注应用程序的可访问性和可用性。然而,这样的GUI复杂性对GUI实现提出了很大的挑战。根据我们对众测错误报告的初步研究,由于软件或硬件兼容性的原因,在不同设备上进行GUI渲染时,总会出现文本重叠、组件遮挡、图像丢失等显示问题。它们会对应用程序的可用性产生负面影响,导致用户体验不佳。为了检测这些问题,我们提出了一种基于深度学习的全自动方法Nighthawk,用于对GUI屏幕截图的视觉信息进行建模。Nighthawk可以检测具有显示问题的GUI,并在给定的GUI中定位问题的详细区域,以指导开发人员修复错误。同时,训练模型需要大量带标签的错误截图,这需要大量的手动工作来准备它们。因此,我们提出了一种基于几何的训练数据自动生成方法来自动生成标记的训练数据。评估表明,我们的Nighthawk在检测UI显示问题时可以达到平均0.84的精确度和0.84的召回率,在定位这些问题时平均0.59 AP和0.60 AR。我们还使用Google Play和F-Droid上流行的Android应用程序对Nighthawk进行了评估,并成功发现了151个以前未检测到的UI显示问题,其中75个已经得到确认或修复。
英文摘要:
Graphical User Interface (GUI) provides a visual bridge between a software application and end users, through which they can interact with each other. With the upgrading of mobile devices and the development of aesthetics, the visual effects of the GUI are more and more attracting, and users pay more attention to the accessibility and usability of applications. However, such GUI complexity posts a great challenge to the GUI implementation. According to our pilot study of crowdtesting bug reports, display issues such as text overlap, component occlusion, missing image always occur during GUI rendering on different devices due to the software or hardware compatibility. They negatively influence the app usability, resulting in poor user experience. To detect these issues, we propose a fully automated approach, Nighthawk, based on deep learning for modelling visual information of the GUI screenshot. Nighthawk can detect GUIs with display issues and also locate the detailed region of the issue in the given GUI for guiding developers to fix the bug. At the same time, training the model needs a large amount of labeled buggy screenshots, which requires considerable manual effort to prepare them. We therefore propose a heuristic-based training data auto-generation method to automatically generate the labeled training data. The evaluation demonstrates that our Nighthawk can achieve average 0.84 precision and 0.84 recall in detecting UI display issues, average 0.59 AP and 0.60 AR in localizing these issues. We also evaluate Nighthawk with popular Android apps on Google Play and F-Droid, and successfully uncover 151 previously-undetected UI display issues with 75 of them being confirmed or fixed so far.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。