|
TestCenter Reference
|
The class controlling a MeVisLab slave instance. More...
Public Member Functions | |
| __init__ (self, cfgFile, context, offline=False) | |
| Initializes the slave process. | |
| 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 = Config.Configuration(cfgFile) | |
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 ) |
Initializes the slave process.
| 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 76 of file Slave.py.
References __agendaTestCase, TestCenterAdvanced.Master.Master.__com, __com, TestCenterAdvanced.Slave.TestCaseRemoteListener.__com, __ctx, TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, __isInsideTestCaseManager, __running, __testCase, TestCenterAdvanced.Master.Master.__testCaseListener, __testCaseListener, TestCenterAdvanced.Master.Master.__testCfg, and __testCfg.
| 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 161 of file Slave.py.
References __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 119 of file Slave.py.
References __loadTestCase().
Referenced by unloadTestCase().
| TestCenterAdvanced.Slave.Slave.run | ( | self | ) |
The main method which handles all the request from the master.
Definition at line 716 of file Slave.py.
References TestCenterAdvanced.Master.Master.__com, __com, TestCenterAdvanced.Slave.TestCaseRemoteListener.__com, __running, and runCommand().
Referenced by 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 670 of file Slave.py.
References TestCenterAdvanced.Master.Master.__buildTestAgenda(), __buildTestAgenda(), TestCenterAdvanced.Master.Master.__buildTestCaseAgenda(), __buildTestCaseAgenda(), TestCenterAdvanced.Master.Master.__com, __com, TestCenterAdvanced.Slave.TestCaseRemoteListener.__com, TestCenterAdvanced.Master.Master.__doTest(), __doTest(), __running, __setPackageList(), TestCenterAdvanced.Master.Master.setTestCaseListener(), and setTestCaseListener().
Referenced by 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 153 of file Slave.py.
References __agendaTestCase.
| TestCenterAdvanced.Slave.Slave.setIsInsideTestCaseManager | ( | self, | |
| isInsideTestCaseManager ) |
Definition at line 113 of file Slave.py.
References TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, and __isInsideTestCaseManager.
| TestCenterAdvanced.Slave.Slave.setTestCaseListener | ( | self, | |
| listener ) |
Definition at line 116 of file Slave.py.
References TestCenterAdvanced.Master.Master.__testCaseListener, and __testCaseListener.
Referenced by runCommand(), and unloadTestCase().
| TestCenterAdvanced.Slave.Slave.unloadTestCase | ( | self | ) |
Clears the loaded test case.
Definition at line 168 of file Slave.py.
References __agendaTestCase, __buildModuleInfo(), __collectModulesToTest(), __getTestCaseInfo(), TestCenterAdvanced.Master.Master.__isInsideTestCaseManager, __isInsideTestCaseManager, __loadAndVerifyTestCase(), __loadTestCase(), __logfile, __testCase, TestCenterAdvanced.Master.Master.__testCaseListener, __testCaseListener, TestCenterAdvanced.Master.Master.__testCfg, __testCfg, __verifyPackageListNode(), __verifyPackages(), __verifyTestCase(), __verifyTestCaseList(), __verifyTestGroups(), _config, TestSupport.Base.clearEncodingCache(), loadTestCase(), run(), and setTestCaseListener().
|
protected |
Definition at line 94 of file Slave.py.
Referenced by unloadTestCase().