Qorus Integration Engine®  4.0.3.p2_git
com.qoretechnologies.qorus.test.QorusInterfaceTest Class Referenceabstract

Base class that exports functions for Qorus interface testing. More...

Inheritance diagram for com.qoretechnologies.qorus.test.QorusInterfaceTest:
org::qore::lang::qunit::Test org::qore::jni::QoreObjectWrapper com.qoretechnologies.qorus.test.QorusJobTest com.qoretechnologies.qorus.test.QorusServiceTest com.qoretechnologies.qorus.test.QorusWorkflowTest com.qoretechnologies.qorus.test.QorusPassiveWorkflowTest

Public Member Methods

 QorusInterfaceTest (QoreObject obj) throws Throwable
 creates the object based on the arguments
 
void globalSetUp () throws Throwable
 checks that the interface exists and executes a StarLog action
 
Object exec (Action data) throws Throwable
 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)
 
String getQorusInstanceName () throws Throwable
 tests whether some Qorus instance is running and returns its name More...
 
String getInstanceName () throws Throwable
 returns the Qorus instance name More...
 
String getDescription () throws Throwable
 returns a string describing the current interface being tested
 
ZonedDateTime getTimestamp () throws Throwable
 returns the test start timestamp
 
HashMap getInterfaceInfo () throws Throwable
 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
 
boolean isInterfaceLoaded () throws Throwable
 tests whether the current interface is loaded in the current Qorus instance More...
 
boolean isInterfaceRunning () throws Throwable
 tests whether the current interface is running in the current Qorus instance More...
 
HashMap getFunctionInfo (String name) throws Throwable
 returns the configuration (including source) for the named library function
 
HashMap getConstantInfo (String name) throws Throwable
 returns the configuration (including source) for the named library constant
 
HashMap getClassInfo (String name) throws Throwable
 returns the configuration (including source) for the named library class
 
void disable () throws Throwable
 disables the current interface
 
void enable () throws Throwable
 enables the current interface
 
abstract String getLogFileName () throws Throwable
 returns the log file name for the current object
 
abstract boolean canRun () throws Throwable
 checks if the interface can run
 

Private Member Methods

void setUserPassword () throws Throwable
 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...
 

Detailed Description

Base class that exports functions for Qorus interface testing.

Member Function Documentation

◆ getInstanceName()

String com.qoretechnologies.qorus.test.QorusInterfaceTest.getInstanceName ( ) throws Throwable
inline

returns the Qorus instance name

Returns
Qorus instance name

◆ getQorusInstanceName()

String com.qoretechnologies.qorus.test.QorusInterfaceTest.getQorusInstanceName ( ) throws Throwable
inline

tests whether some Qorus instance is running and returns its name

Example:
string name = t.getQorusInstanceName();

returns current Qorus instance name

◆ isInterfaceLoaded()

boolean com.qoretechnologies.qorus.test.QorusInterfaceTest.isInterfaceLoaded ( ) throws Throwable
inline

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

Example:
t.isInterfaceLoaded(info);
Returns
True if the interface is loaded, False if not

◆ isInterfaceRunning()

boolean com.qoretechnologies.qorus.test.QorusInterfaceTest.isInterfaceRunning ( ) throws Throwable
inline

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

Example:
bool b = t.isInterfaceRunning();
Returns
True if the interface is running, False if not

◆ setUserPassword()

void com.qoretechnologies.qorus.test.QorusInterfaceTest.setUserPassword ( ) throws Throwable
inlineprivate

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 does nothing


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