When following the documentation on setting up automation tests, the sample provided for "Simple Tests" does not successfully compile. One of two compiles errors is given based on the TFlag used
Affected Flags:
Editor Context - All AutomationTests must have exactly 1 filter type specified Client Context - All AutomationTests must have exactly 1 filter type specified Server Context - All AutomationTests must have exactly 1 filter type specified ApplicationContextMask - All AutomationTests must have exactly 1 filter type specified nonNullRHI - All AutomationTests must have exactly 1 filter type specified Requires User - All AutomationTests must have exactly 1 filter type specified Feature Mask - All AutomationTests must have exactly 1 filter type specified Disabled - All AutomationTests must have exactly 1 filter type specified Smoke Filter - AutomationTest has no application flag. It shouldn't run. Engine Filter - AutomationTest has no application flag. It shouldn't run. Product Filter - AutomationTest has no application flag. It shouldn't run. Perf Filter - AutomationTest has no application flag. It shouldn't run. Stress Filter - AutomationTest has no application flag. It shouldn't run. Filter Mask - All AutomationTests must have exactly 1 filter type specified
Regression:
#include "AutomationTest.h" IMPLEMENT_SIMPLE_AUTOMATION_TEST(FSetResTest, "Windows.SetResolution", EAutomationTestFlags::SmokeFilter) bool FSetResTest::RunTest(const FString& Parameters) { FString MapName = TEXT("AutomationTest"); FEngineAutomationTestUtilities::LoadMap(MapName); int32 ResX = GSystemSettings.ResX; int32 ResY = GSystemSettings.ResY; FString RestoreResolutionString = FString::Printf(TEXT("setres %dx%d"), ResX, ResY); ADD_LATENT_AUTOMATION_COMMAND(FEngineWaitLatentCommand(2.0f)); ADD_LATENT_AUTOMATION_COMMAND(FExecStringLatentCommand(TEXT("setres 640x480"))); ADD_LATENT_AUTOMATION_COMMAND(FEngineWaitLatentCommand(2.0f)); ADD_LATENT_AUTOMATION_COMMAND(FExecStringLatentCommand(RestoreResolutionString)); return true; }
Result:
Compile fails based on EAutomationTestFlags provided
Expected:
Automation test function compiles and can be run from UFE.
I am not able to find world outliner how to enable it?
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
Delay nodes occasionally don't fire the "Completed" output in a nativized build
How can i modify the param name in EQS node
How to achieve HLSL Multiple Render Target in Material blueprints?
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
What method is used to fill polygonal regions when drawing spline mesh at run time?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-45291 in the post.
0 |
Component | UE - Automation Test |
---|---|
Affects Versions | 4.14.3, 4.15.2, 4.16 |
Created | May 22, 2017 |
---|---|
Resolved | Jun 2, 2017 |
Updated | Apr 27, 2018 |