Download

How to use AutomationDriver?

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!

Hey thrivingma! I’m sorry to hear you’re having trouble. I’m not 100% sure what’s the best way to test this, so let me ask around and get back to you. In the meantime you can also try posting your question to https://answers.unrealengine.com/index.html.

Thank you for your reply!

I have the same problem. Do you have some news on the topic?