Ark Server API (ASA) - Wiki
|
#include <AutomationTest.h>
Classes | |
class | FAutomationTestMessageFilter |
class | FAutomationTestOutputDevice |
Static Public Member Functions | |
static FAutomationTestFramework & | Get () |
static FAutomationTestFramework & | GetInstance () |
Friends | |
class | FAutomationTestOutputDevice |
Class representing the main framework for running automation tests
Definition at line 813 of file AutomationTest.h.
|
private |
Constructor
|
private |
Destructor
|
private |
Adds a analytics string to the current test to be parsed later. Must be called only when an automation test is in progress
AnalyticsItem | Log item to add to the current test |
|
private |
Helper method called after automation testing is complete to restore settings to how they should be
Checks if a provided test is contained within the framework.
InTestName | Name of the test to check |
void FAutomationTestFramework::DequeueAllCommands | ( | ) |
Dequeue all latent and network commands
|
private |
Helper method to dump the contents of the provided test name to execution info map to the provided feedback context
InContext | Context to dump the execution info to |
InInfoToDump | Execution info that should be dumped to the provided feedback context |
void FAutomationTestFramework::EnqueueLatentCommand | ( | TSharedPtr< IAutomationLatentCommand > | NewCommand | ) |
Enqueues a latent command for execution on a subsequent frame
NewCommand | - The new command to enqueue for deferred execution |
void FAutomationTestFramework::EnqueueNetworkCommand | ( | TSharedPtr< IAutomationNetworkCommand > | NewCommand | ) |
Enqueues a network command for execution in accordance with this workers role
NewCommand | - The new command to enqueue for network execution |
bool FAutomationTestFramework::ExecuteLatentCommands | ( | ) |
Execute all latent functions that complete during update
bool FAutomationTestFramework::ExecuteNetworkCommands | ( | ) |
Execute the next network command if you match the role, otherwise just dequeue
|
static |
Return the singleton instance of the framework.
|
inline |
Definition at line 1001 of file AutomationTest.h.
|
inline |
Returns the actively executing test or null if there isn't one
Definition at line 1021 of file AutomationTest.h.
|
inlinestatic |
FString FAutomationTestFramework::GetUserAutomationDirectory | ( | ) | const |
Gets a scratch space location outside of the project and saved directories. When an automation test needs to do something like generate project files, or create new projects it should use this directory, rather than pollute other areas of the machine.
void FAutomationTestFramework::GetValidTestNames | ( | TArray< FAutomationTestInfo > & | TestInfo | ) | const |
Populates the provided array with the names of all tests in the framework that are valid to run for the current application settings.
TestInfo | Array to populate with the test information |
Internal helper method designed to simply start the provided test name.
InTestToRun | Name of the test that should be run |
OutExecutionInfo | Results of executing the test |
|
private |
Internal helper method designed to stop current executing test and return the results of execution.
|
inline |
Whether there is no latent command in queue
Definition at line 947 of file AutomationTest.h.
void FAutomationTestFramework::LoadTestModules | ( | ) |
Load any modules that are not loaded by default and have test classes in them
void FAutomationTestFramework::NotifyPerformanceDataRetrieved | ( | bool | bSuccess, |
const FString & | ErrorMessage ) |
void FAutomationTestFramework::NotifyScreenshotComparisonComplete | ( | const FAutomationScreenshotCompareResults & | CompareResults | ) |
void FAutomationTestFramework::NotifyScreenshotTakenAndCompared | ( | ) |
FOnTestScreenshotAndTraceCaptured & FAutomationTestFramework::OnScreenshotAndTraceCaptured | ( | ) |
Accessor for delegate called when a png screenshot is captured and a frame trace
FOnTestScreenshotCaptured & FAutomationTestFramework::OnScreenshotCaptured | ( | ) |
Accessor for delegate called when a png screenshot is captured
|
private |
|
private |
Helper method called to prepare settings for automation testing to follow
bool FAutomationTestFramework::RegisterAutomationTest | ( | const FString & | InTestNameToRegister, |
FAutomationTestBase * | InTestToRegister ) |
Register a automation test into the framework. The automation test may or may not be necessarily valid for the particular application configuration, but that will be determined when tests are attempted to be run.
InTestNameToRegister | Name of the test being registered |
InTestToRegister | Actual test to register |
void FAutomationTestFramework::ResetTests | ( | ) |
Reset status of worker (delete local files, etc)
bool FAutomationTestFramework::RunSmokeTests | ( | ) |
Attempt to run all fast smoke tests that are valid for the current application configuration.
Definition at line 1006 of file AutomationTest.h.
void FAutomationTestFramework::SetDeveloperDirectoryIncluded | ( | const bool | bInDeveloperDirectoryIncluded | ) |
Sets whether we want to include content in developer directories in automation testing
Sets forcing smoke tests.
Definition at line 996 of file AutomationTest.h.
Sets which set of tests to pull from.
Whether the testing framework should allow content to be tested or not. Intended to block developer directories.
Path | - Full path to the content in question |
void FAutomationTestFramework::StartTestByName | ( | const FString & | InTestToRun, |
const int32 | InRoleIndex ) |
Attempt to start the specified test.
InTestToRun | Name of the test that should be run |
InRoleIndex | Identifier for which worker in this group that should execute a command |
bool FAutomationTestFramework::StopTest | ( | FAutomationTestExecutionInfo & | OutExecutionInfo | ) |
Stop the current test and return the results of execution
Unregister a automation test with the provided name from the framework.
Definition at line 1150 of file AutomationTest.h.
|
private |
Mapping of automation test names to their respective object instances
Definition at line 1200 of file AutomationTest.h.
|
private |
Specialized feedback context used for message filtering during automated testing
Definition at line 1195 of file AutomationTest.h.
|
private |
Specialized output device used for automation testing
Definition at line 1192 of file AutomationTest.h.
|
private |
Definition at line 1238 of file AutomationTest.h.
|
private |
Whether we want to run automation tests on content within the Developer Directories
Definition at line 1224 of file AutomationTest.h.
|
private |
Forces running smoke tests
Definition at line 1236 of file AutomationTest.h.
|
private |
True if the execution of the test (but possibly not the latent actions) were successful
Definition at line 1215 of file AutomationTest.h.
|
private |
Pointer to the current test being run
Definition at line 1218 of file AutomationTest.h.
|
private |
Queue of deferred commands
Definition at line 1203 of file AutomationTest.h.
|
private |
Queue of deferred commands
Definition at line 1206 of file AutomationTest.h.
|
private |
Participation role as given by the automation controller
Definition at line 1227 of file AutomationTest.h.
FOnPerformanceDataRetrieved FAutomationTestFramework::OnPerformanceDataRetrieved |
Called when the performance data is retrieved.
Definition at line 835 of file AutomationTest.h.
FOnTestScreenshotComparisonComplete FAutomationTestFramework::OnScreenshotCompared |
Called when a screenshot comparison completes.
Definition at line 829 of file AutomationTest.h.
FSimpleMulticastDelegate FAutomationTestFramework::OnScreenshotTakenAndCompared |
The final call related to screenshots, after they've been taken, and after they've been compared (or not if automation isn't running).
Definition at line 838 of file AutomationTest.h.
FOnTestDataRetrieved FAutomationTestFramework::OnTestDataRetrieved |
Called when the test data is retrieved.
Definition at line 832 of file AutomationTest.h.
FOnTestEvent FAutomationTestFramework::OnTestEndEvent |
Called when each automated test is ending
Definition at line 826 of file AutomationTest.h.
FOnTestEvent FAutomationTestFramework::OnTestStartEvent |
Called when each automated test is starting
Definition at line 823 of file AutomationTest.h.
|
private |
Definition at line 1197 of file AutomationTest.h.
|
private |
Copy of the parameters for the active test
Definition at line 1221 of file AutomationTest.h.
FSimpleMulticastDelegate FAutomationTestFramework::PostTestingEvent |
Called after all automated tests have completed
Definition at line 820 of file AutomationTest.h.
FSimpleMulticastDelegate FAutomationTestFramework::PreTestingEvent |
Called right before automated test is about to begin
Definition at line 817 of file AutomationTest.h.
|
private |
Whether we are currently executing smoke tests for startup/commandlet to minimize log spam
Definition at line 1209 of file AutomationTest.h.
|
private |
Time when the test began executing
Definition at line 1212 of file AutomationTest.h.
|
private |
Delegate called at the end of the frame when a screenshot and frame trace is captured and a .png is requested
Definition at line 1233 of file AutomationTest.h.
|
private |
Delegate called at the end of the frame when a screenshot is captured and a .png is requested
Definition at line 1230 of file AutomationTest.h.