TestCenter 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 | |
The class controlling a MeVisLab slave instance.
The slave is controlled by a master using socket based IPC to send messages.
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 103 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.Master.Master.__testCaseListener, TestCenterAdvanced.Slave.Slave.__testCaseListener, and TestCenterAdvanced.TestCase.TestCase.__testCaseListener.
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 182 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__testCase, and TestSupport.FieldValueTests.FieldValueTestCaseIterator.__testCase.
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 144 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__loadTestCase().
Referenced by TestCenterAdvanced.Slave.Slave.unloadTestCase().
TestCenterAdvanced.Slave.Slave.run | ( | self | ) |
The main method which handles all the request from the master.
Definition at line 712 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().
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 671 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().
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 174 of file Slave.py.
References TestCenterAdvanced.Slave.Slave.__agendaTestCase.
TestCenterAdvanced.Slave.Slave.setIsInsideTestCaseManager | ( | self, | |
isInsideTestCaseManager ) |
Definition at line 132 of file Slave.py.
References TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, and TestCenterAdvanced.Slave.Slave.__isInsideTestCaseManager.
TestCenterAdvanced.Slave.Slave.setTestCaseListener | ( | self, | |
listener ) |
Definition at line 135 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().
TestCenterAdvanced.Slave.Slave.unloadTestCase | ( | self | ) |
Clears the loaded test case.
Definition at line 188 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.
|
protected |
Definition at line 112 of file Slave.py.
Referenced by TestCenterAdvanced.Slave.Slave.unloadTestCase().