![]() |
Qorus Integration Engine® Enterprise Edition 7.0.7_prod
|
Base class that exports functions for Qorus unit testing. For realworld examples see Introduction to the QorusInterfaceTest Module. More...
Public Member Methods | |
| 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 | |
Private Member Methods | |
| 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 | |
Base class that exports functions for Qorus unit testing. For realworld examples see Introduction to the QorusInterfaceTest Module.
| auto QorusInterfaceTest::QorusInterfaceTest::exec | ( | Action | data | ) |
| string QorusInterfaceTest::QorusInterfaceTest::getInstanceName | ( | ) |
returns the Qorus instance name
| string QorusInterfaceTest::QorusInterfaceTest::getQorusInstanceName | ( | ) |
tests whether some Qorus instance is running and returns its name
returns current Qorus instance name
| bool QorusInterfaceTest::QorusInterfaceTest::isInterfaceLoaded | ( | ) |
tests whether the current interface is loaded in the current Qorus instance
| bool QorusInterfaceTest::QorusInterfaceTest::isInterfaceRunning | ( | ) |
tests whether the current interface is running in the current Qorus instance
|
private |
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
this base implementation sets the user and password from the "login" option