Navigation
API > API/Developer > API/Developer/FunctionalTesting
Inheritance Hierarchy
- AActor
- AFunctionalTest
- AScreenshotFunctionalTestBase
- AFunctionalUIScreenshotTest
- AScreenshotFunctionalTest
- AEditorScreenshotFunctionalTest
References
| Module | FunctionalTesting |
| Header | /Engine/Source/Developer/FunctionalTesting/Classes/ScreenshotFunctionalTestBase.h |
| Include | #include "ScreenshotFunctionalTestBase.h" |
Syntax
UCLASS (Blueprintable, Abstract)
class AScreenshotFunctionalTestBase : public AFunctionalTest
Remarks
Base class for screenshot functional test
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | Notes | ||
| TObjectPtr< class UCameraComponent > | ScreenshotCamera | ||
| FAutomationScreenshotOptions | ScreenshotOptions | ||
| FIntPoint | ViewportRestoreSize |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AScreenshotFunctionalTestBase
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditChange
(
const FProperty* InProperty |
||
| void | OnComparisonComplete
(
const FAutomationScreenshotCompareResults& CompareResults |
Do some logging and trigger OnScreenshotTakenAndCompared. | |
| void | OnScreenShotCaptured
(
int32 InSizeX, |
Pass screenshot pixels and meta data to FAutomationTestFramework. | |
| void | Call RestoreViewport and finish this test. | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | Resize viewport to screenshot size (if possible) and set up screenshot environment (disable AA, etc.) | ||
| void | Doesn't actually request in base class. It simply register OnScreenshotCaptured. | ||
| void | Restore viewport size and original environment settings. | ||
| void | Serialize
(
FArchive& Ar |
Overridden from AFunctionalTest
| Type | Name | Description | |
|---|---|---|---|
| void | FinishTest
(
EFunctionalTestResult TestResult, |
||
| bool | Handle screenshot delay. | ||
| void | OnTimeout () |
||
| void | PrepareTest () |
Set player view target to screenshot camera and call PrepareForScreenshot. | |
| void | StartTest () |
Register OnScreenshotTakenAndCompared and call RequestScreenshot. |