AutoTestInterface Class Reference

#include <autotest.h>

Static Public Member Functions

static MAXON_METHOD maxon::Result< void > StartTests (AutoTestQueueRef &queue, CommandDelegate command, ResultDelegate result, EndDelegate end)
 
static MAXON_METHOD AUTOTEST_STATE GetState ()
 
static MAXON_METHOD maxon::Result< void > PauseTests ()
 
static MAXON_METHOD maxon::Result< void > ContinueTests ()
 
static MAXON_METHOD maxon::Result< void > StopTests ()
 
static MAXON_METHOD maxon::Result< void > ExecuteCommand (const maxon::String &cmd, const maxon::Url &path)
 

Private Member Functions

 MAXON_INTERFACE_NONVIRTUAL (AutoTestInterface, MAXON_REFERENCE_NONE, "net.maxonexample.tool.autotest.interfaces.autotest")
 

Member Function Documentation

◆ MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( AutoTestInterface  ,
MAXON_REFERENCE_NONE  ,
"net.maxonexample.tool.autotest.interfaces.autotest"   
)
private

◆ StartTests()

static MAXON_METHOD maxon::Result<void> StartTests ( AutoTestQueueRef &  queue,
CommandDelegate  command,
ResultDelegate  result,
EndDelegate  end 
)
static

Starts executing the given test queue.

Parameters
[in]queueThe test queue to execute.
[in]commandDelegate called before the command is executed.
[in]resultDelegate called after the command has been executed.
[in]endDelegate called after the execution has ended.
Returns
maxon::OK on success.

◆ GetState()

static MAXON_METHOD AUTOTEST_STATE GetState ( )
static

Returns the current execution state.

Returns
AUTOTEST_STATE

◆ PauseTests()

static MAXON_METHOD maxon::Result<void> PauseTests ( )
static

Pauses the execution (AUTOTEST_STATE::PAUSED).

Returns
maxon::OK on success.

◆ ContinueTests()

static MAXON_METHOD maxon::Result<void> ContinueTests ( )
static

Pauses the execution after pausing.

Returns
maxon::OK on success.

◆ StopTests()

static MAXON_METHOD maxon::Result<void> StopTests ( )
static

Stops the execution (AUTOTEST_STATE::STOP).

Returns
maxon::OK on success.

◆ ExecuteCommand()

static MAXON_METHOD maxon::Result<void> ExecuteCommand ( const maxon::String cmd,
const maxon::Url path 
)
static

Executes the given command.

Parameters
[in]cmdThe command to execute.
[in]pathA path providing context for the command.
Returns
maxon::OK on success.