A new automated virtual reality testing system guided by a dedicated interaction flow graph reached an overall interaction coverage of ninety-three percent across diverse virtual environments, outperforming random exploratory testing by a factor of twelve in effectiveness and six in efficiency. Developed by software engineering researchers Ruizhen Gu, José Miguel Rojas, and Donghwan Shin, the testing framework, named XRintTest, addresses a longstanding bottleneck in extended reality software development: the inability of automated tools to systematically synthesise and execute realistic three-dimensional user actions. In an empirical evaluation spanning ten distinct virtual reality scenes comprising 373 evaluated interactions, the model-driven approach successfully activated ninety-seven percent of fire interactions, ninety-four percent of manipulate actions, and eighty-three percent of complex socket interactions. By contrast, a standard random exploration baseline achieved only eight percent total coverage across the identical benchmark suite, failing entirely to trigger any multi-step fire or socket sequences. Beyond verifying functional input pathways, the automated approach exposed runtime crashes, identified subtle object configuration defects that human testers had overlooked during manual trials, and surfaced recurring interaction design flaws within open-source codebases.
Software applications built for virtual reality have expanded rapidly across entertainment, education, and engineering, driven by mature creation engines such as Unity and standardized platforms like Meta Horizon and Android XR. However, verifying the operational correctness of these immersive applications introduces verification difficulties fundamentally distinct from those found in traditional desktop and mobile computing. While conventional mobile software relies on predictable two-dimensional touch events across flat graphical interfaces, virtual reality applications demand spatial tracking across six degrees of freedom, continuous physical simulations, and fine-grained user manipulations. Prior research in extended reality testing established that functionality and user interaction represent the most critical concerns for developers, yet existing automation techniques remained ill-equipped to explore vast spatial input domains. Early virtual reality testing suites focused almost entirely on legacy two-dimensional user interface elements through simple point-and-click mechanisms, failing to generate the complex physical hand motions required by modern immersive hardware. Because earlier tools were architected around basic interface event dispatchers rather than spatial manipulation, they achieved zero percent coverage when evaluated against modern, controller-driven virtual reality environments.
To establish an empirical foundation for automated testing, the research team conducted a systematic analysis of prevalent three-dimensional interaction types across open-source virtual reality software built using the Unity XR Interaction Toolkit. The researchers initiated their collection by searching public repositories and asset catalogues for standalone packages incorporating standard toolkit identifiers, retrieving forty-six GitHub repositories and 315 free Unity Asset Store packages. Through manual screening, the investigators excluded incomplete software development kits and non-standalone components, retaining self-contained virtual projects that contained at least five distinct interactive entities. This selection pipeline yielded ten representative virtual reality scenes across nine qualifying software projects, seven originating from GitHub repositories and two from the Unity Asset Store. To ensure reproducible baseline measurements, the authors focused exclusively on interactions embedded in static scene definitions, setting aside entities dynamically created or destroyed during execution. Detailed manual inspection in the Unity development environment alongside immersive physical validation using a Meta Quest 3 head-mounted display revealed 456 total interaction instances, providing a structured benchmark to assess modern interaction diversity.
The researchers classified the observed 456 interactions into four primary functional categories: manipulate, fire, socket, and custom interactions. Manipulate interactions formed the largest single category, accounting for 271 instances, or approximately fifty-nine percent of the total dataset. These operations involve grasping an object using a controller grab button and frequently require spatial translation through coordinate space. Fire interactions accounted for fifty-five instances, or twelve percent of the dataset, and exhibited a composite structure: an operator must continuously hold a target object before depressing a trigger button. The survey revealed that every trigger action in the benchmark occurred while actively maintaining an object grasp, highlighting the strictly sequential nature of firing inputs. Socket interactions comprised forty-seven instances, representing ten percent of the dataset, and occurred when a user grasped an object and moved it into contact with a dedicated socket component, such as inserting a key into a matching lock. Finally, eighty-three custom interactions, making up eighteen percent of the catalog, encompassed specialized behaviors such as rotating mechanical knobs along constrained rotational axes under active grasping conditions.
Capturing these multi-step physical dependencies required a formal behavioral representation capable of scaling to complex virtual scenes without suffering from the state-space explosion typical of low-level finite-state machines. To resolve this challenge, the investigators introduced the Interaction Flow Graph, a specialized directed acyclic graph formally expressed as an ordered six-tuple containing nodes, edges, labels, interactions, actions, and conditions. Nodes within the graph represent entities capable of engaging in interactive exchanges, encompassing both human controller interactors and target interactable objects while omitting non-interactive environmental geometry. Directed edges define valid interaction pathways from an input source toward a target entity. Edge labels encapsulate the sequence of interactions required to exercise a target object, where each interaction comprises an ordered sequence of discrete atomic actions and a set of prerequisite conditions. Atomic actions encode specific input commands, including forward movements, rotations, and instant or continuous button activations. Conditions explicitly specify prior interactive states that must actively persist, such as requiring an uninterrupted grab action before a trigger input can successfully fire.
The Interaction Flow Graph incorporates three defining architectural characteristics: interaction prioritisation, interaction dependency, and interaction brokerage. Interaction prioritisation selectively abstracts the underlying scene hierarchy by extracting only entities that possess explicit interactive scripts, deliberately excluding non-interactive structural components such as decorative panels or organizational grouping nodes. This selective representation prevents geometric misalignment issues and focuses test generation purely on functional entry points. Interaction dependency guarantees that multi-step prerequisites are systematically enforced during testing sequences, ensuring that an automated test agent will not attempt secondary inputs until foundational states, such as a continuous physical hold, are established and verified. Interaction brokerage captures indirect user interactions where an initial object manipulated by the user serves as an intermediary to operate a secondary target entity. In socket configurations, for example, the graph models an interaction edge flowing from a manipulated key toward a stationary door socket, treating the key as a mediating broker that links the human interactor to the downstream interactive receiver.
Building upon this formal representation, the authors developed XRintTest, an end-to-end automated testing system implemented as a suite of scripts integrated directly within the Unity development engine. The tool operates through two interconnected phases: static scene parsing and dynamic scene exploration. During the static parsing phase, the tool inspects project assets and scene hierarchy files, assigning unique programmatic identifiers to duplicate object names to eliminate target ambiguities, and serializes the complete Interaction Flow Graph into a structured data format. The dynamic explorer subsequently ingests this graph to guide a simulated testing agent through the virtual environment. Exploration relies on three coordinated internal modules: an interactable locator, an automated navigator, and an interaction executor. The locator maps serialized graph entries directly to active runtime object instances, while the navigator directs the virtual user toward unvisited targets using a greedy pathfinding routine that prioritizes the nearest available interactable before manipulating simulated hardware inputs through the XR Interaction Simulator.
Once the navigation module positions the simulated controller within reach of a target entity, the interaction executor synthesizes key events to trigger the precise sequence of atomic actions defined in the graph. To confirm whether an executed sequence successfully triggered the intended system response, XRintTest incorporates a contract-based test result checker that registers event listeners on every interactable entity and monitors the environment for unhandled exceptions. In addition to monitoring programmatic crashes, the system features a dedicated collision-based test oracle designed to uncover non-exceptional interaction defects. Because standard toolkit specifications mandate that every interactable must possess an active collider component, physical contact between controller and object colliders constitutes a necessary precondition for activation. The oracle detects spatial intersections between the controller bounds and target interactable bounds, automatically flagging an unresponsive interaction defect whenever valid geometric intersection occurs but the registered interaction logic fails to execute its intended state transition.
To evaluate the testing framework against realistic software, the research team constructed XRBench3D, an open-source benchmark dataset comprising the ten representative virtual reality scenes spanning 456 total three-dimensional interactions across nine independent software projects. The experimental evaluation investigated test coverage, operational efficiency, and fault detection across 373 evaluated interactions spanning the standardized manipulate, fire, and socket categories. Because prior virtual reality testing frameworks rely exclusively on two-dimensional interface event triggers and registered zero percent coverage on spatial tasks, the authors benchmarked XRintTest against a purely random exploration baseline modeled after mobile monkey testing. The random baseline executed atomic actions at tenth-of-a-second intervals, randomized keypress durations between one-tenth and one-half of a second, and utilized a weighted position reset mechanism to prevent the simulated operator from drifting indefinitely away from test areas. All trials were conducted on a macOS workstation powered by an Apple M3 Pro processor with 36 gigabytes of memory, executing Unity version 6000.0.61f1 and XR Interaction Toolkit version 3.1.1 across five independent runs per scene under a fixed budget of ten simulated minutes.
Across the entire benchmark evaluation, XRintTest demonstrated decisive superiority over random exploration in both breadth of coverage and execution speed. While the random baseline achieved an overall interaction coverage of just eight percent, successfully triggering only 31.6 out of 271 manipulate interactions and failing completely across all fifty-five fire and forty-seven socket interactions, XRintTest achieved an average overall coverage of ninety-three percent, successfully executing 347.2 interactions. Broken down by interaction category, the model-driven tool covered ninety-seven percent of fire interactions, ninety-four percent of manipulate operations, and eighty-three percent of socket couplings. In terms of efficiency, the coverage trajectory of XRintTest rose steeply across all test scenes, attaining approximately ninety-five percent coverage at the temporal midpoint of the allocated testing budget. In six of the ten subject environments, the system achieved near-complete coverage within the first two minutes of execution, whereas the random approach struggled to exceed forty percent coverage even after utilizing the full time budget.
In fault detection assessments, both the automated tool and the random baseline successfully uncovered an identical runtime code exception in scene three, which the researchers traced to a software defect and reported to project maintainers. However, XRintTest demonstrated unique diagnostic capabilities by detecting two distinct unresponsive interaction defects within scene seven through its collision-based oracle. Root-cause analysis demonstrated that these defects did not stem from source code crashes, but rather from property misconfigurations inside the Unity scene definition: both interactable objects had their trigger parameter inadvertently enabled, which disabled physical collision detection in favor of interface event processing and rendered physical controller engagement impossible. One of these misconfigured objects had gone entirely unnoticed during earlier manual testing sessions by human operators. Furthermore, the structural analysis of the Interaction Flow Graph exposed widespread interaction design smells, specifically noting that open-source developers frequently leave socket interaction layer masks configured to accept all objects by default, introducing unintentional interactions and graph edge proliferation.
Despite its high coverage rates, the authors identified specific architectural and operational boundaries governing the current implementation of XRintTest. The system currently evaluates static scene definitions and cannot automatically discover interactive entities instantiated dynamically at runtime or track objects destroyed during physical simulations. In scenes seven and ten, cascading physical interactions occasionally knocked essential objects out of bounds or rendered paired socket interactables permanently unreachable, causing minor coverage reductions. Furthermore, while the current collision-based test oracle reliably detects unresponsiveness, it cannot diagnose semantic interaction failures where an object responds to physical contact but behaves incorrectly according to domain requirements. The researchers noted that while their study focused on Unity-based virtual reality applications, the underlying interactor-interactable abstraction directly parallels architectures in other platforms, such as Unreal Engine and augmented reality toolkits. Future development aims to incorporate reinforcement and imitation learning to autonomously master custom interaction mechanics and establish metamorphic testing relations for complex spatial software environments.
Subject of Research: Automated testing of three-dimensional user interactions in virtual reality applications using interaction flow graphs
Article Title: Automated testing of prevalent 3D user interactions in virtual reality applications
Article References: Gu, R., Rojas, J. M., & Shin, D. (2026). Automated testing of prevalent 3D user interactions in virtual reality applications. Automated Software Engineering, 33(3), Article 78. https://doi.org/10.1007/s10515-026-00620-1
Image Credits: AI Generated
DOI: 10.1007/s10515-026-00620-1
Keywords: Virtual Reality, Automated Software Testing, Model-Based Testing, XRintTest, Interaction Flow Graph, XRBench3D, Unity Engine, XR Interaction Toolkit, Three-Dimensional Interaction, Software Verification, Collision Detection, Interaction Flow Coverage, Random Testing Baseline, Software Engineering, Extended Reality, Object Manipulation
News Source: Denise Maddox. (November 24, 2026). Model-Based Virtual Reality Testing Tool XRintTest Achieves Ninety-Three Percent Interaction Coverage. Scienmag.



