AutoworkHookScript๏ƒ

Experimental: Some methods may not be implemented and may be changed in future versions.

Inherits: RefCounted < Object

Base class for custom test execution hooks.

Description๏ƒ

The AutoworkHookScript class provides a mechanism to inject custom logic into the test execution process.

Methods๏ƒ

void

_run() virtual

void

abort()

int

get_exit_code() const

void

set_exit_code(code: int)

bool

should_abort() const


Method Descriptions๏ƒ

void _run() virtual ๐Ÿ”—

Virtual method executed when the hook runs.


void abort() ๐Ÿ”—

Marks the hook execution as aborted.


int get_exit_code() const ๐Ÿ”—

Returns the exit code set by the hook.


void set_exit_code(code: int) ๐Ÿ”—

Sets the exit code for the hook execution.


bool should_abort() const ๐Ÿ”—

Returns whether the hook has been marked for abortion.