TestCenter Reference
TestCenterAdvanced.Slave.Slave Class Reference

The class controlling a MeVisLab slave instance. More...

Inheritance diagram for TestCenterAdvanced.Slave.Slave:

Public Member Functions

def __init__ (self, cfgFile, context, offline=False)
 The default constructor. More...
def setIsInsideTestCaseManager (self, isInsideTestCaseManager)
def setTestCaseListener (self, listener)
def loadTestCase (self, testCaseNode)
 Load the given test case. More...
def setAgendaTestCase (self, testCase)
 Set the test case that is used for building the agenda/function list. More...
def getTestCase (self)
 Returns the test case that has been run. More...
def unloadTestCase (self)
 Clears the loaded test case. More...
def runCommand (self, requestNode)
 Run a command given via the requestNode. More...
def run (self)
 The main method which handles all the request from the master. More...

Detailed Description

The class controlling a MeVisLab slave instance.

The slave is controlled by a master using socket based IPC to send messages.

Definition at line 67 of file Slave.py.

Constructor & Destructor Documentation

◆ __init__()

def TestCenterAdvanced.Slave.Slave.__init__ (   self,
  offline = False 

The default constructor.

The constructor is passed the MeVisLab context to have it available.

cfgFileThe configuration file used for this test run.
contextThe context used for testing.
offlineSpecifies whether the tests are run in same MeVisLab instance as master.

Definition at line 91 of file Slave.py.

References TestCenterAdvanced.Slave.Slave.__agendaTestCase, TestCenterAdvanced.Slave.TestCaseRemoteListener.__com, TestCenterAdvanced.Slave.Slave.__com, TestCenterAdvanced.Master.Master.__com, TestCenterAdvanced.Slave.Slave.__ctx, TestCenterAdvanced.Slave.Slave.__isInsideTestCaseManager, TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, TestCenterAdvanced.Slave.Slave.__logfile, TestCenterAdvanced.Slave.Slave.__testCaseListener, TestCenterAdvanced.Master.Master.__testCaseListener, and TestCenterAdvanced.Slave.Slave._config.

Member Function Documentation

◆ getTestCase()

def TestCenterAdvanced.Slave.Slave.getTestCase (   self)

Returns the test case that has been run.

Used in the TestCaseManager to keep test case after execution.

The test case object.

Definition at line 170 of file Slave.py.

References TestCenterAdvanced.Slave.Slave.__testCase.

◆ loadTestCase()

def TestCenterAdvanced.Slave.Slave.loadTestCase (   self,

Load the given test case.

If the test case could not be loaded "None" is returned.

testCaseNodeXML representation containing information on the test case to load.
The loaded test case.

Definition at line 132 of file Slave.py.

References TestCenterAdvanced.Slave.Slave.__loadTestCase().

Referenced by TestCenterAdvanced.Slave.Slave.unloadTestCase().

◆ run()

def TestCenterAdvanced.Slave.Slave.run (   self)

◆ runCommand()

◆ setAgendaTestCase()

def TestCenterAdvanced.Slave.Slave.setAgendaTestCase (   self,

Set the test case that is used for building the agenda/function list.

Used in the TestCaseManager module to make local testing possible.

testCaseThe test case object.

Definition at line 162 of file Slave.py.

References TestCenterAdvanced.Slave.Slave.__agendaTestCase.

◆ setIsInsideTestCaseManager()

def TestCenterAdvanced.Slave.Slave.setIsInsideTestCaseManager (   self,

◆ setTestCaseListener()

def TestCenterAdvanced.Slave.Slave.setTestCaseListener (   self,

◆ unloadTestCase()

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