Kernel::GenericInterface::Operation::Test::Test - GenericInterface Operation Test backend
usually, you want to create an instance of this by using Kernel::GenericInterface::Operation->new();
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 }, ... }, };
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.