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() |
get_exit_code() const |
|
void |
set_exit_code(code: int) |
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.