Automatically Detecting Visual Bugs in HTML5 <canvas> Games
Finlay Macklon, Mohammad Reza Taesiri, Markos Viggiato, Stefan, Antoszko, Natalia Romanova, Dale Paas, Cor-Paul Bezemer

TL;DR
This paper introduces an automated method for detecting visual bugs in HTML5 <canvas> games by analyzing internal object representations and comparing them with oracle assets, significantly improving bug detection accuracy over traditional snapshot testing.
Contribution
It presents a novel approach that leverages internal object representations for automated visual bug detection in <canvas> games, overcoming limitations of existing snapshot testing methods.
Findings
Achieves 100% accuracy in bug detection
Outperforms traditional snapshot testing with 44.6% accuracy
Effective in identifying visual bugs in <canvas> games
Abstract
The HTML5 <canvas> is used to display high quality graphics in web applications such as web games (i.e., <canvas> games). However, automatically testing <canvas> games is not possible with existing web testing techniques and tools, and manual testing is laborious. Many widely used web testing tools rely on the Document Object Model (DOM) to drive web test automation, but the contents of the <canvas> are not represented in the DOM. The main alternative approach, snapshot testing, involves comparing oracle snapshot images with test-time snapshot images using an image similarity metric to catch visual bugs, i.e., bugs in the graphics of the web application. However, creating and maintaining oracle snapshot images for <canvas> games is onerous, defeating the purpose of test automation. In this paper, we present a novel approach to automatically detect visual bugs in <canvas> games. By…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Web Data Mining and Analysis · Advanced Malware Detection Techniques
