docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Test with test fixtures

    The UI Test Framework provides several test fixtures that help you create and manage panel instances for testing UI Toolkit-based UI.

    Topic Description
    Introduction to test fixtures Overview of the available test fixtures and their intended purposes.
    Test in both Editor and runtime states Use UITestFixture to create tests that run in both Editor and Runtime states.
    Test UI with Editor window instances Use EditorWindowUITestFixture<T> to create tests that require an actual EditorWindow instance.
    Test UI without Editor window dependencies Use EditorUITestFixture to create tests that do not require an actual EditorWindow instance.
    Test UI in runtime Use RuntimeUITestFixture to create tests that run in Play mode.
    Debug UI test fixtures Display the UI during test execution for debugging purposes.
    Trigger and update UI Use the PanelSimulator API provided by the test fixtures to simulate UI interactions and update the UI.
    Create multi-window tests Create tests that involve multiple panels or windows.

    Additional resources

    • Simulate UI interactions
    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)