Namespace UnityEngine.UIElements.TestFramework
Classes
AbstractUITestFixture
Common interface for UI test fixtures. Manages NUnit's lifetime and provides a PanelSimulator to simulate interactions with UIToolkit content. Provides component-based extensibility for re-usable utilities. Actual usage done via UITestFixture, EditorWindowUITestFixture<EditorWindowType>, or RuntimeUITestFixture.
CleanupUtil
Provides a way to track and clean up objects that need to be disposed or destroyed after tests.
When added to a test fixture, CleanupUtil will automatically clean up all objects that
were added to be disposed or destroyed after the test execution.
CommonUITestFixture
Basic implementation of AbstractUITestFixture. Manages NUnit's lifetime and provides a PanelSimulator to simulate interactions with UIToolkit content. Provides component-based extensibility for re-usable utilities. Actual usage done via UITestFixture, EditorWindowUITestFixture<EditorWindowType> or RuntimeUITestFixture
MenuSimulator
Base class for components related to menu simulation.
PanelSimulator
Management of Editor or Runtime panels used by tests. Allows for the simulation of time passing, sending events, and updating the panel in a synchronous manner. Creation and ownership of the panel is performed by the child classes.
PopupMenuSimulator
Provides a testable wrapper for both Editor and Runtime popup menu interactions in UI Toolkit tests. Allows simulation and verification of popup menu display, item selection, and menu content without invoking the native system menu.
RuntimePanelSimulator
A PanelSimulator for use with runtime tests.
RuntimeUITestFixture
Test fixture base class that creates a Runtime panel.
UITestComponent
Use this class to create your own reusable test components that define custom behavior at specific phases of the test lifecycle.
UITestFixture
Test fixture base class that creates a UIToolkit panel without the resources needed for an EditorWindow.
VisualElementUtility
Provides utility functions related to VisualElement.
Enums
UITestFixture.FixtureType
The type of fixture to create during instantiation.