TestCenter Reference
TestCenterAdvanced.Slave.Slave Class Reference

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

Public Member Functions

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

Protected Attributes

 _config
 

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__()

TestCenterAdvanced.Slave.Slave.__init__ ( self,
cfgFile,
context,
offline = False )

Member Function Documentation

◆ getTestCase()

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()

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()

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()

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

◆ setTestCaseListener()

◆ unloadTestCase()

Member Data Documentation

◆ _config

TestCenterAdvanced.Slave.Slave._config
protected

Definition at line 112 of file Slave.py.

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


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