Qorus Integration Engine® Enterprise Edition 6.0.16_prod
Loading...
Searching...
No Matches
QorusInterfaceTest::QorusJobTest Class Reference

job test class More...

Inheritance diagram for QorusInterfaceTest::QorusJobTest:
[legend]
Collaboration diagram for QorusInterfaceTest::QorusJobTest:
[legend]

Public Member Methods

 constructor (string name, string version, reference< auto > p_argv, *hash< auto > opts)
 creates the object according to the arguments More...
 
 constructor (string name, string version, *list< auto > p_argv, *hash< auto > opts)
 creates the object according to the arguments More...
 
 constructor (string name, reference< auto > p_argv, *hash< auto > opts)
 creates the object according to the arguments More...
 
 constructor (string name, *list< auto > p_argv, *hash< auto > opts)
 creates the object according to the arguments More...
 
 constructor (string name, string version, *hash< auto > opts)
 creates the object according to the arguments More...
 
 constructor (string name, string version)
 creates the object according to the arguments More...
 
 constructor (string name, hash< auto > opts)
 creates the object according to the arguments More...
 
 constructor (string name)
 creates the object according to the arguments More...
 
string getLogFileName ()
 returns the log file name for the current object
 
bool canRun ()
 checks if the interface can run
 
hash< auto > run ()
 runs the given job and returns the result hash
 
*hash< auto > getJobResultHash (int jiid)
 returns the job result hash for the given job_instanceid
 
- Public Member Methods inherited from QorusInterfaceTest::QorusInterfaceTest
 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 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
 
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
 

Additional Inherited Members

- 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...
 
 usageIntern ()
 outpus command-line usage information
 
- 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
 
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
 

Detailed Description

job test class

Member Function Documentation

◆ constructor() [1/8]

QorusInterfaceTest::QorusJobTest::constructor ( string  name)

creates the object according to the arguments

Parameters
namethe job name

◆ constructor() [2/8]

QorusInterfaceTest::QorusJobTest::constructor ( string  name,
*list< auto >  p_argv,
*hash< auto >  opts 
)

creates the object according to the arguments

Parameters
namethe job name
p_argvan optional to command-line arguments to process
optsan optional option hash for Qore::GetOpt::constructor()

◆ constructor() [3/8]

QorusInterfaceTest::QorusJobTest::constructor ( string  name,
hash< auto >  opts 
)

creates the object according to the arguments

Parameters
namethe job name
optsan optional option hash for Qore::GetOpt::constructor()

◆ constructor() [4/8]

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

creates the object according to the arguments

Parameters
namethe job name
p_argvan optional reference to command-line arguments to process
optsan optional option hash for Qore::GetOpt::constructor()

◆ constructor() [5/8]

QorusInterfaceTest::QorusJobTest::constructor ( string  name,
string  version 
)

creates the object according to the arguments

Parameters
namethe job name
versionthe version of the job

◆ constructor() [6/8]

QorusInterfaceTest::QorusJobTest::constructor ( string  name,
string  version,
*hash< auto >  opts 
)

creates the object according to the arguments

Parameters
namethe job name
versionthe version of the job
optsan optional option hash for Qore::GetOpt::constructor()

◆ constructor() [7/8]

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

creates the object according to the arguments

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

◆ constructor() [8/8]

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

creates the object according to the arguments

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

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