docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace UnityEngine.UIElements.TestFramework

    Classes

    AbstractUITestFixture

    Common interface for UI test fixtures. Manages NUnit's lifetime and provides a PanelSimulator to simulate interactions with UI Toolkit content. Provides component-based extensibility for reusable utilities. Actual usage done via UITestFixture, EditorWindowUITestFixture<EditorWindowType>, or RuntimeUITestFixture.

    CleanupUtil

    Tracks and cleans up objects that require disposal or destruction after tests. When added to a test fixture, CleanupUtil automatically cleans up all registered objects after the test execution.

    CommonUITestFixture

    Basic implementation of AbstractUITestFixture. Manages NUnit's lifetime and provides a PanelSimulator to simulate interactions with UI Toolkit content. Provides component-based extensibility for reusable utilities. Actual usage done via UITestFixture, EditorWindowUITestFixture<EditorWindowType>, or RuntimeUITestFixture

    MenuSimulator

    Base class for components related to menu simulation.

    PanelSimulator

    Base class for managing Editor or runtime panels in tests. Enables simulation of time progression, event dispatching, and synchronous panel updates. Panel creation and ownership are handled by derived 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

    Creates reusable test components that define custom behavior at specific phases of the test lifecycle.

    UITestFixture

    Test fixture base class that creates a UI Toolkit panel without an EditorWindow.

    VisualElementUtility

    Provides utility functions related to VisualElement.

    Enums

    UITestFixture.FixtureType

    The type of fixture to create during instantiation.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)