Navigation
API > API/Developer > API/Developer/FunctionalTesting
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AFunctionalTest
- AFunctionalAITestBase
- AFunctionalAITest
References
| Module | FunctionalTesting |
| Header | /Engine/Source/Developer/FunctionalTesting/Classes/FunctionalAITest.h |
| Include | #include "FunctionalAITest.h" |
Syntax
class AFunctionalAITestBase : public AFunctionalTest
Remarks
Base abstract class defining a Functional AI Test. You can derive from this base class to create a test with a different type of SpawnSets.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bDebugNavMeshOnTimeout | If set, ftest will postpone start until navmesh is fully generated | |
| uint32: 1 | bSingleSetRun | ||
| uint32: 1 | bWaitForNavMesh | If set, ftest will postpone start until navmesh is fully generated | |
| int32 | CurrentSpawnSetIndex | ||
| FString | CurrentSpawnSetName | ||
| FVector | NavMeshDebugExtent | Navmesh debug: extent around NavMeshDebugOrigin | |
| FVector | NavMeshDebugOrigin | Navmesh debug: log navoctree modifiers around this point | |
| FTimerHandle | NavmeshDelayTimer | ||
| FFunctionalTestAISpawned | OnAISpawned | Called when a single AI finished spawning | |
| FFunctionalTestEventSignature | OnAllAISPawned | Called when a all AI finished spawning | |
| TArray< FPendingDelayedSpawn > | PendingDelayedSpawns | ||
| TArray< TObjectPtr< APawn > > | SpawnedPawns | ||
| float | SpawnLocationRandomizationRange |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AFunctionalAITestBase
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddSpawnedPawn
(
APawn& SpawnedPawn |
||
| void | |||
| void | ForEachSpawnSet
(
TFunctionRef< void(FAITestSpawnSetBase&)> Predicate |
Iterate through the list of spawn sets and execute Predicate on each. | |
| void | ForEachSpawnSet
(
TFunctionRef< void(const FAITestSpawnSetBase&)> Predicate |
Iterate through the list of spawn sets and execute Predicate on each in a const-correct way. | |
| FVector | GetRandomizedLocation
(
const FVector& Location |
||
| FAITestSpawnInfoBase * | GetSpawnInfo
(
const int32 SpawnSetIndex, |
Return the SpawnInfo at SpawnInfoIndexof the SpawnSet at SpawnSetIndex. | |
| const FAITestSpawnInfoBase * | GetSpawnInfo
(
const int32 SpawnSetIndex, |
Return the SpawnInfo at SpawnInfoIndexof the SpawnSet at SpawnSetIndex. Const-correct version. | |
| const FAITestSpawnSetBase * | GetSpawnSet
(
const int32 SpawnSetIndex |
Return the SpawnSet at this index of the SpawnSets array. Const-correct version. | |
| FAITestSpawnSetBase * | GetSpawnSet
(
const int32 SpawnSetIndex |
Return the SpawnSet at this index of the SpawnSets array. | |
| bool | |||
| bool | IsOneOfSpawnedPawns
(
AActor* Actor |
||
| bool | IsValidSpawnSetIndex
(
const int32 Index |
Return whether the index is valid in the SpawnSets array. | |
| void | |||
| void | |||
| void | RemoveSpawnSetIfPredicate
(
TFunctionRef< bool(FAITestSpawnSetBase&)> Predicate |
Iterate through the list of spawn sets and remove the spawn set if Predicate returns true. | |
| bool | Spawn
(
const int32 SpawnSetIndex, |
Spawn this AI at this SpawnInfoIndex of the SpawnSetIndex spawn set. | |
| void |
Overridden from AFunctionalTest
| Type | Name | Description | |
|---|---|---|---|
| void | CleanUp () |
Called to clean up when tests is removed from the list of active tests after finishing execution. | |
| void | GatherRelevantActors
(
TArray< AActor* >& OutActors |
||
| FString | GetAdditionalTestFinishedMessage
(
EFunctionalTestResult TestResult |
||
| FString | |||
| bool | |||
| void | OnTimeout () |
||
| bool | |||
| void | StartTest () |
Called once the IsReady() check for the test returns true. | |
| bool |