Navigation
API > API/Developer > API/Developer/FunctionalTesting
Inheritance Hierarchy
- UBlueprintFunctionLibrary
- UAutomationBlueprintFunctionLibrary
References
| Module | FunctionalTesting |
| Header | /Engine/Source/Developer/FunctionalTesting/Public/AutomationBlueprintFunctionLibrary.h |
| Include | #include "AutomationBlueprintFunctionLibrary.h" |
Syntax
UCLASS (Meta=(ScriptName="AutomationLibrary"))
class UAutomationBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAutomationBlueprintFunctionLibrary
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddExpectedLogError
(
FString ExpectedPatternString, |
Mute the report of log error and warning matching a pattern during an automated test. | |
| void | AddExpectedLogMessage
(
FString ExpectedPatternString, |
Expect a specific log message to match a pattern during an automated test regardless of its verbosity. | |
| void | AddExpectedPlainLogError
(
FString ExpectedString, |
Mute the report of log error and warning matching a plain string during an automated test | |
| void | AddExpectedPlainLogMessage
(
FString ExpectedString, |
Expect a specific log message to match a plain string during an automated test regardless of its verbosity | |
| void | AddTestError
(
const FString& InLogItem |
Add error to currently running automated test. | |
| void | AddTestInfo
(
const FString& InLogItem |
Add info to currently running automated test. | |
| void | AddTestTelemetryData
(
FString DataPoint, |
Add Telemetry data to currently running automated test. | |
| void | AddTestWarning
(
const FString& InLogItem |
Add warning to currently running automated test. | |
| bool | Lets you know if any automated tests are running, or are about to run and the automation system is spinning up tests. | ||
| void | AutomationWaitForLoading
(
UObject* WorldContextObject, |
||
| FAutomationScreenshotData | BuildScreenshotData
(
const FString& MapOrContext, |
||
| FAutomationScreenshotData | BuildScreenshotData
(
UWorld* InWorld, |
||
| bool | CompareImageAgainstReference
(
FString ImageFilePath, |
Request image comparison. | |
| void | DisableStatGroup
(
UObject* WorldContextObject, |
||
| void | EnableStatGroup
(
UObject* WorldContextObject, |
||
| void | |||
| FIntPoint | GetAutomationScreenshotSize
(
const FAutomationScreenshotOptions& Options |
||
| FAutomationScreenshotOptions | GetDefaultScreenshotOptionsForGameplay
(
EComparisonTolerance Tolerance, |
||
| FAutomationScreenshotOptions | GetDefaultScreenshotOptionsForRendering
(
EComparisonTolerance Tolerance, |
||
| float | GetStatCallCount
(
FName StatName |
||
| float | GetStatExcAverage
(
FName StatName |
||
| float | GetStatExcMax
(
FName StatName |
||
| float | GetStatIncAverage
(
FName StatName |
||
| float | GetStatIncMax
(
FName StatName |
||
| void | SetEditorViewportViewMode
(
EViewModeIndex Index |
Sets all viewports of the first found level editor to have the given ViewMode (Lit/Unlit/etc.) | |
| void | SetEditorViewportVisualizeBuffer
(
FName BufferName |
Sets all viewports of the first found level editor to have the VisualizeBuffer ViewMode and also display a given buffer (BaseColor/Metallic/Roughness/etc.) | |
| void | SetScalabilityQualityLevelRelativeToMax
(
UObject* WorldContextObject, |
Sets all other settings based on an overall value | |
| void | SetScalabilityQualityToEpic
(
UObject* WorldContextObject |
||
| void | SetScalabilityQualityToLow
(
UObject* WorldContextObject |
||
| void | SetTestTelemetryStorage
(
FString StorageName |
Set Telemetry data storage name of currently running automated test. | |
| void | TakeAutomationScreenshot
(
UObject* WorldContextObject, |
Takes a screenshot of the game's viewport. Does not capture any UI. | |
| void | TakeAutomationScreenshotAtCamera
(
UObject* WorldContextObject, |
Takes a screenshot of the game's viewport, from a particular camera actors POV. | |
| bool | TakeAutomationScreenshotInternal
(
UObject* WorldContextObject, |
||
| void | TakeAutomationScreenshotOfUI
(
UObject* WorldContextObject, |
||
| bool | TakeAutomationScreenshotOfUI_Immediate
(
UObject* WorldContextObject, |
||
| UAutomationEditorTask * | TakeHighResScreenshot
(
int32 ResX, |
Take high res screenshot in editor. |