Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/AutomationTest.h |
Include |
#include "Misc/AutomationTest.h" |
class FAutomationTestBase
Simple abstract base class for all automation tests
Name | Description | ||
---|---|---|---|
|
bComplexTask |
Flag to indicate if this is a complex task. |
|
|
bRunOnSeparateThread |
Flag to indicate if this test should be ran on it's own thread. |
|
|
bSuppressLogs |
Flag to suppress logs |
|
|
ExecutionInfo |
Info related to the last execution of this test |
|
|
TestName |
Name of the test |
|
|
TestParameterContext |
Context of the test |
Name | Description | |
---|---|---|
|
FAutomationTestBase |
Constructor |
Name | Description | |
---|---|---|
|
~FAutomationTestBase() |
Destructor |
Name | Description | ||
---|---|---|---|
|
AddAnalyticsItem ( |
Adds a analytics string to parse later |
|
|
AddCommand ( |
Enqueues a new latent network command. |
|
|
AddCommand ( |
Enqueues a new latent command. |
|
|
AddError |
Adds an error message to this test |
|
|
AddErrorIfFalse |
Adds an error message to this test if the condition is false |
|
|
AddErrorS |
Adds an error message to this test |
|
|
AddEvent ( |
Adds an automation event directly into the execution log. |
|
|
AddExpectedError ( |
Adds a regex pattern to an internal list that this test will expect to encounter in error or warning logs during its execution. |
|
|
AddInfo |
Adds a log item to this test |
|
|
AddTelemetryData |
Adds several telemetry data point measurements |
|
|
AddTelemetryData |
Adds a telemetry data point measurement |
|
|
AddWarning |
Adds a warning to this test |
|
|
AddWarningS |
Adds an warning message to this test |
|
|
ClearExecutionInfo() |
Clear any execution info/results from a prior running of this test |
|
|
ElevateLogWarningsToErrors() |
If returns true then logging with a level of Warning will be treated as an error |
|
|
GenerateTestNames ( |
Helper function that will generate a list of sub-tests via GetTests |
|
|
GetBeautifiedTestName() |
Returns the beautified test name |
|
|
GetExecutionInfo ( |
Populate the provided execution info object with the execution info contained within the test. |
|
|
GetExpectedErrors ( |
Populate the provided expected errors object with the expected errors contained within the test. |
|
|
GetRequiredDeviceNum() |
Pure virtual method; returns the number of participants for this test |
|
|
GetSuccessState() |
Return the test success state |
|
|
GetTestAssetPath ( |
Allows navigation to the asset associated with the test if there is one. |
|
|
GetTestContext() |
Gets the parameter context of the test. |
|
|
GetTestFlags() |
Pure virtual method; returns the flags associated with the given automation test |
|
|
GetTestFullName() |
Returns the beautified test name with test context. |
|
|
GetTestName() |
Gets the C++ name of the test. |
|
|
GetTestOpenCommand ( |
Return an exec command to open the test associated with this parameter. |
|
|
GetTests |
Asks the test to enumerate variants that will all go through the "RunTest" function with different parameters (for load all maps, this should enumerate all maps to load)\ |
|
|
GetTestSourceFileLine ( |
Gets the line number where this test was defined. |
|
|
GetTestSourceFileLine() |
Gets the line number where this test was defined. |
|
|
GetTestSourceFileName ( |
Gets the filename where this test was defined. |
|
|
GetTestSourceFileName() |
Gets the filename where this test was defined. |
|
|
HasAnyErrors() |
Returns whether this test has any errors associated with it or not |
|
|
HasMetExpectedErrors() |
Returns whether this test has encountered all expected errors defined for it |
|
|
const bool |
IsComplexTask() |
Is this a complex tast - if so it will be a stress test. |
|
const bool |
IsRanOnSeparateThread() |
|
|
PopContext() |
||
|
PushContext ( |
||
|
RunTest ( |
Virtual call to execute the automation test. |
|
|
SetSuccessState ( |
Forcibly sets whether the test has succeeded or not |
|
|
SetTelemetryStorage ( |
Set telemetry storage name |
|
|
SetTestContext ( |
Sets the parameter context of the test. |
|
|
SuppressLogErrors() |
If returns true then logging with a level of Error will not be recorded in test results |
|
|
SuppressLogs() |
If true no logging will be included in test events |
|
|
SuppressLogWarnings() |
If returns true then logging with a level of Warning will not be recorded in test results |
|
|
TestEqual |
||
|
TestEqual ( |
Logs an error if the two values are not equal. |
|
|
TestEqual ( |
||
|
TestEqual ( |
||
|
TestEqual ( |
||
|
TestEqual ( |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual ( |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual ( |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqual |
||
|
TestEqualInsensitive |
||
|
TestFalse |
Logs an error if the specified Boolean value is not false. |
|
|
TestFalse |
||
|
TestInvalid ( |
||
|
TestInvalid ( |
Logs an error if the given shared pointer is valid. |
|
|
TestNotEqual ( |
Logs an error if the two values are equal. |
|
|
TestNotEqual ( |
||
|
TestNotNull ( |
Logs an error if the specified pointer is NULL. |
|
|
TestNotNull ( |
||
|
TestNotSame ( |
Logs an error if the two values are the same object in memory. |
|
|
TestNotSame ( |
||
|
TestNull |
Logs an error if the specified pointer is not NULL. |
|
|
TestNull |
||
|
TestSame ( |
Logs an error if the two values are not the same object in memory. |
|
|
TestSame ( |
||
|
TestTrue |
Logs an error if the specified Boolean value is not true. |
|
|
TestTrue |
||
|
TestValid ( |
Logs an error if the given shared pointer is not valid. |
|
|
TestValid ( |
Name | Description | ||
---|---|---|---|
|
AddLogItem ( |
Use AddInfo |