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 79 of file Slave.py.

Constructor & Destructor Documentation

◆ __init__()

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.

Returns
The test case object.

Definition at line 182 of file Slave.py.

References TestCenterAdvanced.Slave.Slave.__testCase, and TestSupport.FieldValueTests.FieldValueTestCaseIterator.__testCase.

◆ loadTestCase()

def TestCenterAdvanced.Slave.Slave.loadTestCase (   self,
  testCaseNode 
)

Load the given test case.

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

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

Definition at line 144 of file Slave.py.

References TestCenterAdvanced.Slave.Slave.__loadTestCase().

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

◆ run()

◆ runCommand()

◆ setAgendaTestCase()

def TestCenterAdvanced.Slave.Slave.setAgendaTestCase (   self,
  testCase 
)

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

Used in the TestCaseManager module to make local testing possible.

Parameters
testCaseThe test case object.

Definition at line 174 of file Slave.py.

References TestCenterAdvanced.Slave.Slave.__agendaTestCase.

◆ setIsInsideTestCaseManager()

def TestCenterAdvanced.Slave.Slave.setIsInsideTestCaseManager (   self,
  isInsideTestCaseManager 
)

◆ setTestCaseListener()

◆ unloadTestCase()

def TestCenterAdvanced.Slave.Slave.unloadTestCase (   self)

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