Navigation
API > API/Plugins > API/Plugins/EditorTests
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEditorUtilityTest
References
| Module | EditorTests |
| Header | /Engine/Plugins/Tests/EditorTests/Source/EditorTests/Classes/EditorUtilityTest.h |
| Include | #include "EditorUtilityTest.h" |
Syntax
UCLASS&40;Blueprintable, Meta&61;&40;ShowWorldContextPin&41;&41;
class UEditorUtilityTest : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | Description | A description of the test, like what is this test trying to determine. | |
| FEditorUtilityTestFinishedSignature | OnTestFinished | Called when the test is finished. Use it to clean up | |
| FEditorUtilityTestEventSignature | OnTestPrepare | Called when the test is ready to prepare | |
| FEditorUtilityTestEventSignature | OnTestStart | Called when the test is started | |
| FString | Owner | The owner is the group or person responsible for the test. | |
| float | PreparationTimeLimit | The Test's time limit for preparation, this is the time it has to trigger IsReadyToStart(). | |
| EEditorUtilityTestResult | State | ||
| float | TimeLimit | Test's total run time limit. '0' means no limit |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UEditorUtilityTest
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add Error | ||
| void | Add Info | ||
| void | AddWarning
(
const FString& Message |
Add Warning | |
| void | ExpectFalse
(
bool Condition, |
Add error if expected condition is true | |
| void | ExpectTrue
(
bool Condition, |
Add error if expected condition is false | |
| void | Tell the blueprint VM to start the test (to use at the end of Prepare Test event). | ||
| void | FinishTest
(
EEditorUtilityTestResult TestState, |
Tell the VM the test is finished with specify state. | |
| EEditorUtilityTestResult | GetState () |
Get test state | |
| bool | IsRunning () |
Is test ruuning | |
| void | PrepareTest () |
Use to setup test before running, must call FinishPrepareTest at the end to actual start the test. | |
| void | ReceiveFinishedTest
(
EEditorUtilityTestResult TestState, |
Use to add clean up steps, the call is blocking. | |
| void | Run () |
Blueprint Utility Editor entry point | |
| void | StartTest () |
Actual run the test, must call FinishTest at then end of test with a state to signify the test is done. | |
| bool | Tick
(
float DeltaSeconds |