一句话:提出VRGuide,用动态切割覆盖优化相机路径,以高效测试VR场景并发现未知缺陷。
VR用户界面与传统GUI差异显著,已有的VRTest等自动化测试框架通过控制玩家相机进行测试,但难以应对对象遮挡和移动等VR特定挑战。本文提出VRGuide,将计算几何中的Cut Extension技术用于动态切割覆盖,优化相机路径以覆盖所有可交互对象。作者在八个主流VR软件项目上与VRTest进行比较:两个项目在测试超时前获得更高覆盖率;其余六个项目以平均减少31%的测试时间达到饱和覆盖。此外,VRGuide检测并报告了四个开发者确认的未知缺陷,其中仅一个也被VRTest发现。
Virtual Reality (VR) is an emerging technique that has been applied to more and more areas such as gaming, remote conference, and education. Since VR user interface has very different characteristics compared with traditional graphic user interface (GUI), VR applications also require new testing techniques for quality assurance. Recently, some frameworks (e.g., VRTest) have been proposed to automate VR user interface testing by automatically controlling the player camera. However, their testing strategies are not able to address VR-specific testing challenges such as object occlusion and movement. In this paper, we propose a novel testing technique called VRGuide to explore VR scenes more efficiently. In particular, VRGuide adapts a computer geometry technique called Cut Extension to optimize the camera routes for covering all interact-able objects. We compared the testing strategy with VRTest on eight top VR software projects with scenes. The results show that VRGuide is able to achieve higher test coverage upon testing timeout in two of the projects, and achieve saturation coverage with averagely 31% less testing time than VRTest on the remaining six projects. Furthermore, VRGuide detected and reported four unknown bugs confirmed by developers, only one of which is also detected by VRTest.