NAME
Kernel::GenericInterface::Operation::Test::Test – GenericInterface Operation Test backend
PUBLIC INTERFACE
has DebuggerObject
Attribute that holds the debugger object.
new()
usually, you want to create an instance of this by using Kernel::GenericInterface::Operation->new();
Run()
perform the selected test Operation. This will return the data that was handed to the function or return a variable data if 'TestError' and 'ErrorData' params are sent.
my $Result = $OperationObject->Run(
Data => { # data payload before Operation
...
},
);
$Result = {
Success => 1, # 0 or 1
ErrorMessage => '', # in case of error
Data => { # result data payload after Operation
...
},
};
my $Result = $OperationObject->Run(
Data => { # data payload before Operation
TestError => 1,
ErrorData => {
...
},
},
);
$Result = {
Success => 0, # it always return 0
ErrorMessage => 'Error message for error code: 1', # including the 'TestError' param
Data => {
ErrorData => { # same data was sent as
# 'ErrorData' param
},
...
},
};