How do I correctly use the Automation Driver and Automation Spec for UI testing?

Hi, I’m a novice on Automation Driver and ue4. I am confused on how to create a c++ file to write the test case. I create use the engine editor but it build failed and shows could not found the include file. I just write these lines:

#include “AutomationDriverCommon.h”
#include “AutomationDriverTypeDefs.h”

BEGIN_DEFINE_SPEC(FAutomationDriver2Spec,
“System.Automation.Driver2”,
EAutomationTestFlags::ProductFilter | EAutomationTestFlags::ApplicationContextMask)
FAutomationDriverPtr Driver;
END_DEFINE_SPEC(FAutomationDriver2Spec)
void FAutomationDriver2Spec::Define()
{
IAutomationDriverModule::Get().Enable();
IAutomationDriverModule::Get().Disable();
}

Could you give me some suggestions? Thank you!

1 Like