I want to use the “Automation Driver” discribe in document https://docs.unrealengine.com/en-US/…ver/index.html.
But how can I create a testcase? I use the engine create an C++ class in the cpp file, I copy these lines in “AutomationDriver.spec.cpp”.
#include “SmokeTest.h”
#include “AutomationTest.h”
#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();
FAutomationDriverPtr Driver = IAutomationDriverModule::Get().CreateDriver();
IAutomationDriverModule::Get().Disable();
}
But it didn’t work, it build failed. Could you give me some advice on how to create a file to run AutomationDriver?
I am a novice. Can you help me? thank you very much. Thank you!