Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/AutomationTest.h |
| Include | #include "Misc/AutomationTest.h" |
Syntax
class FAutomationTestFramework
Remarks
Class representing the main framework for running automation tests
Variables
| Type | Name | Description | |
|---|---|---|---|
| FSimpleMulticastDelegate | OnAfterAllTestsEvent | Called after all chosen tests run have finished. | |
| FSimpleMulticastDelegate | OnBeforeAllTestsEvent | Called before all chosen tests run. | |
| FOnPerformanceDataRetrieved | OnPerformanceDataRetrieved | Called when the performance data is retrieved. | |
| FOnTestScreenshotComparisonComplete | OnScreenshotCompared | Called when a screenshot comparison completes. | |
| FOnTestScreenshotComparisonReport | OnScreenshotComparisonReport | Called when a screenshot comparison result is reported | |
| FSimpleMulticastDelegate | OnScreenshotTakenAndCompared | The final call related to screenshots, after they've been taken, and after they've been compared (or not if automation isn't running). | |
| FOnTestDataRetrieved | OnTestDataRetrieved | Called when the test data is retrieved. | |
| FOnTestEvent | OnTestEndEvent | Called when each automated test is ending | |
| FOnTestEvent | OnTestStartEvent | Called when each automated test is starting | |
| FSimpleMulticastDelegate | PostTestingEvent | Called after all automated tests have completed | |
| FSimpleMulticastDelegate | PreTestingEvent | Called right before automated test is about to begin |
Constructors
No constructors are accessible with public or protected access.
Destructors
No destructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddAnalyticsItemToCurrentTest
(
const FString& AnalyticsItem |
Adds a analytics string to the current test to be parsed later. | |
| bool | CanRunTestInEnvironment
(
const FString& InTestToRun, |
Internal helper method designed to check if the given test is able to run in the current environment. | |
| bool | ContainsTest
(
const FString& InTestName |
Checks if a provided test is contained within the framework. | |
| void | Dequeue all latent and network commands | ||
| void | EnqueueLatentCommand
(
TSharedPtr< IAutomationLatentCommand > NewCommand |
Enqueues a latent command for execution on a subsequent frame | |
| void | EnqueueNetworkCommand
(
TSharedPtr< IAutomationNetworkCommand > NewCommand |
Enqueues a network command for execution in accordance with this workers role | |
| bool | Execute all latent functions that complete during update | ||
| bool | Execute the next network command if you match the role, otherwise just dequeue | ||
| FAutomationTestFramework & | Get () |
Return the singleton instance of the framework. | |
| bool | |||
| FAutomationTestBase * | Returns the actively executing test or null if there isn't one | ||
| FString | Returns the actively executing test full path | ||
| FAutomationTestFramework & | GetInstance () |
||
| FOnTestSectionEvent & | GetOnEnteringTestSection
(
const FString& Section |
Called entering test section. | |
| FOnTestSectionEvent & | GetOnLeavingTestSection
(
const FString& Section |
Called leaving test section. | |
| FString | Gets a scratch space location outside of the project and saved directories. | ||
| void | GetValidTestNames
(
TArray< FAutomationTestInfo >& TestInfo |
Populates the provided array with the names of all tests in the framework that are valid to run for the current application settings. | |
| bool | |||
| bool | |||
| bool | Whether there is no latent command in queue | ||
| void | Load any modules that are not loaded by default and have test classes in them | ||
| bool | Whether to output blueprint functional test metadata to the log when test is running | ||
| bool | Whether to also run stereo test variants for screenshot functional tests | ||
| bool | Whether to skip stack walk while iterating for listing the tests | ||
| bool | Whether to skip variants when the baseline test fails, and skip saving screenshots for successful variants | ||
| void | NotifyPerformanceDataRetrieved
(
bool bSuccess, |
||
| void | NotifyScreenshotComparisonComplete
(
const FAutomationScreenshotCompareResults& CompareResults |
Notify that the screenshot comparison has completed | |
| void | NotifyScreenshotComparisonReport
(
const FAutomationScreenshotCompareResults& CompareResults |
Notify the screenshot comparison report to the framework | |
| void | |||
| void | NotifyTestDataRetrieved
(
bool bWasNew, |
||
| FOnTestScreenshotAndTraceCaptured & | Accessor for delegate called when a png screenshot is captured and a frame trace | ||
| FOnTestScreenshotCaptured & | Accessor for delegate called when a png screenshot is captured | ||
| bool | RegisterAutomationTest
(
const FString& InTestNameToRegister, |
Register a automation test into the framework. | |
| void | ResetTests () |
Reset status of worker (delete local files, etc) | |
| bool | Attempt to run all fast smoke tests that are valid for the current application configuration. | ||
| void | SetCaptureStack
(
bool bCapture |
Used to disabled stack capture when an error or warning event is triggered. | |
| void | SetDeveloperDirectoryIncluded
(
const bool bInDeveloperDirectoryIncluded |
Sets whether we want to include content in developer directories in automation testing | |
| void | SetForceSmokeTests
(
const bool bInForceSmokeTests |
Sets forcing smoke tests. | |
| void | SetRequestedTestFilter
(
const uint32 InRequestedTestFlags |
Sets which set of tests to pull from. | |
| bool | ShouldTestContent
(
const FString& Path |
Whether the testing framework should allow content to be tested or not. | |
| void | StartTestByName
(
const FString& InTestToRun, |
Attempt to start the specified test. | |
| bool | StopTest
(
FAutomationTestExecutionInfo& OutExecutionInfo |
Stop the current test and return the results of execution | |
| void | TriggerOnEnteringTestSection
(
const FString& Section |
||
| void | TriggerOnLeavingTestSection
(
const FString& Section |
||
| bool | UnregisterAutomationTest
(
const FString& InTestNameToUnregister |
Unregister a automation test with the provided name from the framework. |