Qorus Integration Engine®  4.0.3.p1_git
QorusInterfaceTest::QorusPassiveWorkflowTest Class Reference

workflow test class; this class will not start any workflow execution instances More...

Inheritance diagram for QorusInterfaceTest::QorusPassiveWorkflowTest:
QorusInterfaceTest::QorusWorkflowTest QorusInterfaceTest::QorusInterfaceTest QUnit::Test QUnit::TestReporter

Public Member Methods

 constructor (string name, string version, *reference p_argv, *hash< auto > opts)
 creates the object from the arguments More...
 
bool isInterfaceRunning ()
 tests whether the current interface is running in the current Qorus instance More...
 
bool canRun ()
 returns False so that no execution instances will be started when the test is run
 
- Public Member Methods inherited from QorusInterfaceTest::QorusWorkflowTest
 constructor (string name, string version, *reference p_argv, *hash< auto > opts)
 creates the object from the arguments More...
 
 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 More...
 
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 More...
 
hash< auto > execSynchronous (hash< auto > orderdata)
 creates and executes a synchronous workflow order and returns the hash data result More...
 
- Public Member Methods inherited from QorusInterfaceTest::QorusInterfaceTest
 constructor (string name, string version, string desc, string rest_pfx, *reference p_argv, *hash< auto > 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 (that allows to retrieve some particular information about the action later in the test script) More...
 
string getQorusInstanceName ()
 tests whether some Qorus instance is running and returns its name More...
 
string getInstanceName ()
 returns the Qorus instance name More...
 
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 More...
 
bool isInterfaceRunning ()
 tests whether the current interface is running in the current Qorus instance More...
 
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
 

Additional Inherited Members

- Static Public Member Methods inherited from QorusInterfaceTest::QorusWorkflowTest
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 More...
 
static hash< auto > staticData (int wfiid)
 returns the static data hash of the given workflow order More...
 
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 More...
 
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 More...
 
- Private Member Methods inherited from QorusInterfaceTest::QorusInterfaceTest
 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 More...
 
- Private Attributes inherited from QorusInterfaceTest::QorusWorkflowTest
*bool m_started
 flag if a workflow exec instance was started; if True then it is stopped in the destructor
 
- Private Attributes inherited from QorusInterfaceTest::QorusInterfaceTest
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
 

Detailed Description

workflow test class; this class will not start any workflow execution instances

Member Function Documentation

◆ constructor()

QorusInterfaceTest::QorusPassiveWorkflowTest::constructor ( string  name,
string  version,
*reference  p_argv,
*hash< auto >  opts 
)

creates the object from the arguments

Parameters
namethe workflow name
versionthe version of the workflow
p_argvan optional reference to command-line arguments to process
optsan optional option hash for Qore::GetOpt::constructor()

◆ isInterfaceRunning()

bool QorusInterfaceTest::QorusPassiveWorkflowTest::isInterfaceRunning ( )

tests whether the current interface is running in the current Qorus instance

Example:
bool b = t.isInterfaceRunning();

The documentation for this class was generated from the following file: