Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
Inheritance Hierarchy
- TSharedFromThis
- IAutomationLatentCommand
- IAutomationLatentCommandWithRetriesAndDelays
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/AutomationTest.h |
| Include | #include "Misc/AutomationTest.h" |
Syntax
class IAutomationLatentCommandWithRetriesAndDelays : public IAutomationLatentCommand
Remarks
Extension of IAutomationLatentCommand with delays between attempts if initial command does not succeed. Has a max retry count that can be overridden. Default is 10 retries with a 1 second delay in between. To protect against misuse of unlimited retries, has a Max execution time of 5 minutes. This can be overridden, but not recommended. Only do this if you're absolutely certain it will not cause an infinite loop
Variables
| Type | Name | Description | |
|---|---|---|---|
| const bool | bHasUnlimitedRetries | Indicates that this latent command has unlimited retries Used to implement the MaxTotalRunTimeInSeconds logic | |
| const FString | CommandClassName | Command Name stored for easy logging. | |
| double | DelayStartTime | Time that the Delay Timer started. | |
| const double | DelayTimeInSeconds | Time in between UpdateDelayed calls. Default is 1 second but can be overridden. | |
| const int32 | MaxRetries | Times to retry command before reporting command failure. Defaults to 10, but can be overridden. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor | |||
IAutomationLatentCommandWithRetriesAndDelays
(
const FString InCommandClassName, |
Parameterized constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanRetry () |
Determines if we should execute the command. | |
| void | CommandFailedDueToError
(
const FString& ErrorMessage |
||
| bool | Execute () |
Pure virtual method that must be overridden. This is the actual command logic. | |
| FAutomationTestBase * | |||
| FString | Returns the command name. | ||
| bool | Returns if we have exceeded max allowed total run time for this latent command. | ||
| bool | Determines if timer is running, pausing execution in a non-blocking way. | ||
| void | OverrideMaxTotalRunTimeInSeconds
(
double OverrideValue |
||
| void | Resets the Delay Timer by setting start time to now (In game time). |
Overridden from IAutomationLatentCommand
| Type | Name | Description | |
|---|---|---|---|
| bool | Update () |
Base Update override with delay logic built in. Can be further overridden in child classes |