|
TestCenter Reference
|
TestCase superclass for generic testing. More...
Public Member Functions | |
| __init__ (self, testCaseName, moduleName=None) | |
| getType (self) | |
| Return the type of this test case (generic or functional). | |
| run (self, xmlNode) | |
| Prior to running the actual test the module name is set to the result node. | |
| getName (self) | |
| Return the name of the test case. | |
| getModulesToTest (self, moduleList, packageList) | |
| Get the list of modules to test. | |
| Public Member Functions inherited from TestCenterAdvanced.TestCase.TestCase | |
| __init__ (self, testCaseName, isNewlyCreated=False) | |
| Initialize the test case. | |
| __del__ (self) | |
| destroyContext (self) | |
| activate (self) | |
| Registers the test case at the TestHelper. | |
| deactivate (self) | |
| Resets the test helper. | |
| setTestCaseListener (self, testCaseListener) | |
| addExtraTestCaseResult (self, extraTestCaseResult) | |
| callFieldValueTestCase (self, filename, testcase) | |
| Call the given field-value test case from the given field-value test case set. | |
| isValid (self) | |
| Return True if the loaded test case is syntactically valid and should be executable. | |
| hasNetwork (self) | |
| Return True if the test case has a network attached. | |
| networkFileName (self) | |
| Returns the absolute file name of the attached network or an empty string if no network is attached. | |
| openFiles (self) | |
| Open the files associated with the test case. | |
| openNetwork (self) | |
| Open the internal network of the test case. | |
| getModule (self) | |
| Return the module representing this test case, or None. | |
| getListOfTestFuncs (self) | |
| Get the list of test functions in this test. | |
| getPackage (self) | |
| Return the identifier of the package the test case is in. | |
| getTestCaseNode (self) | |
| Return the XML node with the test case's information. | |
| getDocumentation (self, functionName) | |
| Get the documentation for the given test function. | |
Protected Attributes | |
| _moduleName = moduleName | |
| Protected Attributes inherited from TestCenterAdvanced.TestCase.TestCase | |
| _ctx = None | |
| _testCaseName = testCaseName | |
| _testHelper = TestHelper.getInstance() | |
| _dataDirectory = infoDict["dataDirectory"] | |
Additional Inherited Members | |
| Public Attributes inherited from TestCenterAdvanced.TestCase.TestCase | |
| bool | futureDone = False |
| callFieldValueTestCase | |
| Protected Member Functions inherited from TestCenterAdvanced.TestCase.TestCase | |
| _getTestCaseInfo (self, testCaseName) | |
| _getTestFunction (self, funcName) | |
| _loadScriptFile (self, filename) | |
| Load the test cases script file. | |
| _callGroupFunction (self, groupFunctionName) | |
| _callableFunctions (self) | |
| _buildVirtualFunctions (self, isNewlyCreated) | |
| Build an XML node with the virtual functions. | |
TestCase superclass for generic testing.
Definition at line 19 of file TestCaseGeneric.py.
| TestCenterAdvanced.TestCaseGeneric.GenericTestCase.__init__ | ( | self, | |
| testCaseName, | |||
| moduleName = None ) |
Definition at line 22 of file TestCaseGeneric.py.
| TestCenterAdvanced.TestCaseGeneric.GenericTestCase.getModulesToTest | ( | self, | |
| moduleList, | |||
| packageList ) |
Get the list of modules to test.
Definition at line 55 of file TestCaseGeneric.py.
References __testModule().
| TestCenterAdvanced.TestCaseGeneric.GenericTestCase.getName | ( | self | ) |
Return the name of the test case.
Reimplemented from TestCenterAdvanced.TestCase.TestCase.
Definition at line 51 of file TestCaseGeneric.py.
References _moduleName, and TestCenterAdvanced.TestCase.TestCase._testCaseName.
| TestCenterAdvanced.TestCaseGeneric.GenericTestCase.getType | ( | self | ) |
Return the type of this test case (generic or functional).
Reimplemented from TestCenterAdvanced.TestCase.TestCase.
Definition at line 26 of file TestCaseGeneric.py.
| TestCenterAdvanced.TestCaseGeneric.GenericTestCase.run | ( | self, | |
| xmlNode ) |
Prior to running the actual test the module name is set to the result node.
Reimplemented from TestCenterAdvanced.TestCase.TestCase.
Definition at line 29 of file TestCaseGeneric.py.
References _moduleName.
|
protected |
Definition at line 23 of file TestCaseGeneric.py.