TestCenter Reference
|
The class controlling a MeVisLab slave instance. More...
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... | |
The class controlling a MeVisLab slave instance.
The slave is controlled by a master using socket based IPC to send messages.
def TestCenterAdvanced.Slave.Slave.__init__ | ( | self, | |
cfgFile, | |||
context, | |||
offline = False |
|||
) |
The default constructor.
The constructor is passed the MeVisLab context to have it available.
cfgFile | The configuration file used for this test run. |
context | The context used for testing. |
offline | Specifies whether the tests are run in same MeVisLab instance as master. |
Definition at line 109 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__agendaTestCase, TestCenterAdvanced.Master.Master.__com, TestCenterAdvanced.Slave.TestCaseRemoteListener.__com, TestCenterAdvanced.Slave.Slave.__com, TestCenterAdvanced.Slave.Slave.__ctx, TestSupport.ChangeSet.ChangeSet.__ctx, TestSupport.FieldValueTests.FieldValueTestCaseSet.__ctx, TestSupport.FieldValueTests.FieldValueTestCase.__ctx, TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, TestCenterAdvanced.Slave.Slave.__isInsideTestCaseManager, TestCenterAdvanced.Slave.Slave.__logfile, TestCenterAdvanced.Master.Master.__testCaseListener, TestCenterAdvanced.Slave.Slave.__testCaseListener, TestCenterAdvanced.TestCase.TestCase.__testCaseListener, and TestCenterAdvanced.Slave.Slave._config.
def TestCenterAdvanced.Slave.Slave.getTestCase | ( | self | ) |
Returns the test case that has been run.
Used in the TestCaseManager to keep test case after execution.
Definition at line 192 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__testCase, and TestSupport.FieldValueTests.FieldValueTestCaseIterator.__testCase.
def TestCenterAdvanced.Slave.Slave.loadTestCase | ( | self, | |
testCaseNode | |||
) |
Load the given test case.
If the test case could not be loaded "None" is returned.
testCaseNode | XML representation containing information on the test case to load. |
Definition at line 151 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__loadTestCase().
Referenced by TestCenterAdvanced.Slave.Slave.unloadTestCase().
def TestCenterAdvanced.Slave.Slave.run | ( | self | ) |
The main method which handles all the request from the master.
Definition at line 755 of file Slave.py.
References TestCenterAdvanced.Master.Master.__com, TestCenterAdvanced.Slave.TestCaseRemoteListener.__com, TestCenterAdvanced.Slave.Slave.__com, TestCenterAdvanced.Slave.Slave.__running, TestSupport.FieldValueTests.FieldValueTestCaseIterator.__running, and TestCenterAdvanced.Slave.Slave.runCommand().
Referenced by TestCenterAdvanced.Slave.Slave.unloadTestCase().
def TestCenterAdvanced.Slave.Slave.runCommand | ( | self, | |
requestNode | |||
) |
Run a command given via the requestNode.
requestNode | The request that contains the command and its parameters. |
Definition at line 710 of file Slave.py.
References TestCenterAdvanced.Master.Master.__buildTestAgenda(), TestCenterAdvanced.Slave.Slave.__buildTestAgenda(), TestCenterAdvanced.Slave.Slave.__buildTestCaseAgenda(), TestCenterAdvanced.Master.Master.__buildTestCaseAgenda(), TestCenterAdvanced.Master.Master.__com, TestCenterAdvanced.Slave.TestCaseRemoteListener.__com, TestCenterAdvanced.Slave.Slave.__com, TestCenterAdvanced.Master.Master.__doTest(), TestCenterAdvanced.Slave.Slave.__doTest(), TestCenterAdvanced.Slave.Slave.__running, TestSupport.FieldValueTests.FieldValueTestCaseIterator.__running, TestCenterAdvanced.Slave.Slave.__setPackageList(), TestCenterAdvanced.Master.Master.setTestCaseListener(), TestCenterAdvanced.Slave.Slave.setTestCaseListener(), and TestCenterAdvanced.TestCase.TestCase.setTestCaseListener().
Referenced by TestCenterAdvanced.Slave.Slave.run().
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.
testCase | The test case object. |
Definition at line 183 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__agendaTestCase.
def TestCenterAdvanced.Slave.Slave.setIsInsideTestCaseManager | ( | self, | |
isInsideTestCaseManager | |||
) |
Definition at line 139 of file Slave.py.
References TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, and TestCenterAdvanced.Slave.Slave.__isInsideTestCaseManager.
def TestCenterAdvanced.Slave.Slave.setTestCaseListener | ( | self, | |
listener | |||
) |
Definition at line 142 of file Slave.py.
References TestCenterAdvanced.Master.Master.__testCaseListener, TestCenterAdvanced.Slave.Slave.__testCaseListener, and TestCenterAdvanced.TestCase.TestCase.__testCaseListener.
Referenced by TestCenterAdvanced.Slave.Slave.runCommand(), and TestCenterAdvanced.Slave.Slave.unloadTestCase().
def TestCenterAdvanced.Slave.Slave.unloadTestCase | ( | self | ) |
Clears the loaded test case.
Definition at line 199 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__agendaTestCase, TestCenterAdvanced.Slave.Slave.__buildModuleInfo(), TestCenterAdvanced.Slave.Slave.__collectModulesToTest(), TestCenterAdvanced.Slave.Slave.__getTestCaseInfo(), TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, TestCenterAdvanced.Slave.Slave.__isInsideTestCaseManager, TestCenterAdvanced.Slave.Slave.__loadAndVerifyTestCase(), TestCenterAdvanced.Slave.Slave.__loadTestCase(), TestCenterAdvanced.Slave.Slave.__logfile, TestCenterAdvanced.Slave.Slave.__testCase, TestSupport.FieldValueTests.FieldValueTestCaseIterator.__testCase, TestCenterAdvanced.Master.Master.__testCaseListener, TestCenterAdvanced.Slave.Slave.__testCaseListener, TestCenterAdvanced.TestCase.TestCase.__testCaseListener, TestCenterAdvanced.Master.Master.__testCfg, TestCenterAdvanced.Slave.Slave.__testCfg, TestCenterAdvanced.Slave.Slave.__verifyPackageListNode(), TestCenterAdvanced.Slave.Slave.__verifyPackages(), TestCenterAdvanced.Slave.Slave.__verifyTestCase(), TestCenterAdvanced.Slave.Slave.__verifyTestCaseList(), TestCenterAdvanced.Slave.Slave.__verifyTestGroups(), TestCenterAdvanced.Slave.Slave._config, TestSupport.Base.clearEncodingCache(), TestCenterAdvanced.Slave.Slave.loadTestCase(), TestCenterAdvanced.Slave.Slave.run(), TestCenterAdvanced.Slave.Slave.setTestCaseListener(), and TestCenterAdvanced.Slave.unicode.