![]() |
Qorus Integration Engine® Enterprise Edition 7.0.1_prod
|
Workflow test class. More...
Public Member Methods | |
constructor (string name, string version, reference< auto > p_argv, *hash< auto > opts) | |
creates the object from the arguments | |
constructor (string name, string version, *list< auto > p_argv, *hash< auto > opts) | |
creates the object from the arguments | |
constructor (string name, string version, hash< auto > opts) | |
creates the object from the arguments | |
constructor (string name, string version) | |
creates the object from the arguments | |
destructor () | |
stops any workflow execution instance started in the isInterfaceRunning() method call | |
string | getLogFileName () |
returns the log file name for the current object | |
bool | isInterfaceRunning () |
tests whether the current interface is running in the current Qorus instance | |
bool | canRun () |
checks if the interface can run | |
softint | getLastOrderId () |
finds the last workflow order instance created for this workflow | |
int | createOrder (hash< auto > staticdata, *hash< auto > create_opts) |
creates an order instance and returns the workflow_instanceid | |
hash< auto > | execSynchronous (hash< auto > orderdata) |
creates and executes a synchronous workflow order and returns the hash data result | |
![]() | |
constructor (string name, string version, string desc, string rest_pfx, reference< auto > p_argv, hash< auto > opts=Opts) | |
creates the object | |
constructor (string name, string version, string desc, string rest_pfx, *list< auto > p_argv, hash< auto > opts=Opts) | |
creates the object | |
constructor (string name, string version, string desc, string rest_pfx, hash< auto > opts=Opts) | |
creates the object | |
globalSetUp () | |
checks that the interface exists and executes a StarLog action | |
auto | exec (Action data) |
executes the Action by calling its run() method and returns the object of Action | |
string | getQorusInstanceName () |
tests whether some Qorus instance is running and returns its name | |
string | getInstanceName () |
returns the Qorus instance name | |
string | getDescription () |
returns a string describing the current interface being tested | |
date | getTimestamp () |
returns the test start timestamp | |
*hash< auto > | getInterfaceInfo () |
returns information about the interface from the REST API or NOTHING if the interface doesn't exist or the system is not responding on the HTTP interface | |
bool | isInterfaceLoaded () |
tests whether the current interface is loaded in the current Qorus instance | |
bool | isInterfaceRunning () |
tests whether the current interface is running in the current Qorus instance | |
hash< auto > | getFunctionInfo (string name) |
returns the configuration (including source) for the named library function | |
hash< auto > | getConstantInfo (string name) |
returns the configuration (including source) for the named library constant | |
hash< auto > | getClassInfo (string name) |
returns the configuration (including source) for the named library class | |
disable () | |
disables the current interface | |
enable () | |
enables the current interface | |
int | getOptionColumn () |
returns the column number for usage output | |
restartSystem (int status=SS_UNKNOWN) | |
returns True if the system was not running before it was started | |
abstract string | getLogFileName () |
returns the log file name for the current object | |
abstract bool | canRun () |
checks if the interface can run | |
Static Public Member Methods | |
static hash< auto > | hierarchyInfo (int wfiid) |
returns a hash of workflow order instance information keyed by workflow_instanceid for all workflow orders in the hierarchy | |
static hash< auto > | staticData (int wfiid) |
returns the static data hash of the given workflow order | |
static *hash< auto > | dynamicData (int wfiid) |
returns the dynamic data hash of the given workflow order or NOTHING if no dynamic data exists for the workflow order | |
static *hash< auto > | orderKeys (int wfiid) |
returns the order key hash for the given workflow order or NOTHING if no order keys have been set for the workflow order | |
Private Attributes | |
*bool | m_started |
flag if a workflow exec instance was started; if True then it is stopped in the destructor | |
![]() | |
string | m_rest_pfx |
a REST URI path prefix for the interface | |
string | m_instance_name |
Qorus instance name. | |
string | m_desc |
interface description | |
date | m_timestamp = now_us() |
start timestamp | |
bool | m_system_started |
flag if the system was started for these tests | |
const | Opts |
command-line options | |
const | OptionColumn = 25 |
the default column position for option usage | |
const | SS_UNKNOWN = 0 |
system start code: unknown status | |
const | SS_RUNNING = 1 |
system start code: running status | |
const | SS_STOPPED = 2 |
system start code: stopped status | |
Additional Inherited Members | |
![]() | |
setUserPassword () | |
reimplement in child classes to allow the REST username & password for the Qorus server connection to be set before trying to communicate with the server | |
usageIntern () | |
outpus command-line usage information | |
Workflow test class.
QorusInterfaceTest::QorusWorkflowTest::constructor | ( | string | name, |
string | version | ||
) |
creates the object from the arguments
name | the workflow name |
version | the version of the workflow |
QorusInterfaceTest::QorusWorkflowTest::constructor | ( | string | name, |
string | version, | ||
*list< auto > | p_argv, | ||
*hash< auto > | opts | ||
) |
creates the object from the arguments
name | the workflow name |
version | the version of the workflow |
p_argv | an optional reference to command-line arguments to process |
opts | an optional option hash for Qore::GetOpt::constructor() |
QorusInterfaceTest::QorusWorkflowTest::constructor | ( | string | name, |
string | version, | ||
hash< auto > | opts | ||
) |
creates the object from the arguments
name | the workflow name |
version | the version of the workflow |
opts | an optional option hash for Qore::GetOpt::constructor() |
QorusInterfaceTest::QorusWorkflowTest::constructor | ( | string | name, |
string | version, | ||
reference< auto > | p_argv, | ||
*hash< auto > | opts | ||
) |
creates the object from the arguments
name | the workflow name |
version | the version of the workflow |
p_argv | an optional reference to command-line arguments to process |
opts | an optional option hash for Qore::GetOpt::constructor() |
int QorusInterfaceTest::QorusWorkflowTest::createOrder | ( | hash< auto > | staticdata, |
*hash< auto > | create_opts | ||
) |
creates an order instance and returns the workflow_instanceid
staticdata | the static data hash for the order |
create_opts | other options to add to the order hash for the create order REST API, corresponding to the OMQ::UserApi::create_order() API params parameter (ex: orderkeys for order keys, etc) |
|
static |
returns the dynamic data hash of the given workflow order or NOTHING if no dynamic data exists for the workflow order
wfiid | the workflow_instanceid of the workflow order to query |
hash< auto > QorusInterfaceTest::QorusWorkflowTest::execSynchronous | ( | hash< auto > | orderdata | ) |
creates and executes a synchronous workflow order and returns the hash data result
orderdata | a hash with the following keys:
|
workflow_instanceid:
the workflow instance ID for the order createdstatus:
the status of the workflow; see Workflow, Segment, and Step Status Descriptions for possible valuesdynamicdata:
the dynamic data of the workflow order instance
|
static |
returns a hash of workflow order instance information keyed by workflow_instanceid for all workflow orders in the hierarchy
wfiid | the workflow_instanceid of the workflow order to query |
bool QorusInterfaceTest::QorusWorkflowTest::isInterfaceRunning | ( | ) |
tests whether the current interface is running in the current Qorus instance
|
static |
returns the order key hash for the given workflow order or NOTHING if no order keys have been set for the workflow order
wfiid | the workflow_instanceid of the workflow order to query |
|
static |
returns the static data hash of the given workflow order
wfiid | the workflow_instanceid of the workflow order to query |