Enhancing Path Testing with Eye-Tracking: A Human-Centric Approach to Functional Software Testing
摘要
Software testing is essential for reliable, high-quality software, and path testing plays a key role in ensuring every function works as intended. However, connecting complex code to control-flow graphs can overwhelm testers, slowing down the process and increasing the risk of errors. We’ve developed a novel eye-tracking system to make path testing easier and more effective. By tracking testers’ gaze, the system highlights matching code when they view a graph node, or the corresponding node when they focus on a line of code, keeping them focused and reducing mental strain. In a controlled laboratory experiment, involving 44 participants, we assessed the system’s impact. The results reveal that testers made fewer errors in path testing and completed testing with less effort using our system compared to traditional methods. This cross-domain approach, combining human-computer interaction with software testing, introduces an innovative technique to optimize testing processes. Our case study demonstrates the system’s potential as a valuable educational aid in teaching path testing, bridging theoretical knowledge and practical skills. Moreover, it provides practical insights for enhancing software quality assurance and supporting testers in both industry and education.