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.
Inherited Members
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. |