docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ResultsUtility

    Utility class for extracting images from the TestResults.xml file. This class is used to extract images from the test results and save them to the specified directory.

    Inheritance
    object
    ResultsUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.TestTools.Graphics
    Assembly: UnityEditor.TestTools.Graphics.dll
    Syntax
    public class ResultsUtility

    Methods

    ExtractImagesFromTestProperties(TestAdapter)

    Extracts images from the test properties and saves them to the specified directory. The images are saved in the format testName.png and testName.diff.png. The directory is created if it does not exist. The images are also imported with the reference image import settings.

    Declaration
    public static void ExtractImagesFromTestProperties(TestContext.TestAdapter test)
    Parameters
    Type Name Description
    TestContext.TestAdapter test

    The test whose properties are to be extracted. The test must have the properties "Image" and/or "DiffImage" set.

    In This Article
    Back to top
    Copyright © 2026 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)