TestCenter Reference
TestCenterAdvanced.TestCaseGeneric.GenericTestCase Class Reference

TestCase superclass for generic testing. More...

Inheritance diagram for TestCenterAdvanced.TestCaseGeneric.GenericTestCase:
TestCenterAdvanced.TestCase.TestCase

Public Member Functions

 __init__ (self, testCaseName, moduleName=None)
 Initialize the test case.
 
 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
 __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
 
 _testCaseName
 
- Protected Attributes inherited from TestCenterAdvanced.TestCase.TestCase
 _ctx
 
 _testCaseName
 
 _testHelper
 
 _dataDirectory
 

Additional Inherited Members

- Public Attributes inherited from TestCenterAdvanced.TestCase.TestCase
 futureDone
 
 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.
 

Detailed Description

TestCase superclass for generic testing.

Definition at line 19 of file TestCaseGeneric.py.

Constructor & Destructor Documentation

◆ __init__()

TestCenterAdvanced.TestCaseGeneric.GenericTestCase.__init__ (   self,
  testCaseName,
  isNewlyCreated = None 
)

Initialize the test case.

Parameters
testCaseNameThe name of the test case.
isNewlyCreatedIndicates if the test case is newly created to suppress the warning that no test functions exist.

Reimplemented from TestCenterAdvanced.TestCase.TestCase.

Definition at line 22 of file TestCaseGeneric.py.

Member Function Documentation

◆ getModulesToTest()

TestCenterAdvanced.TestCaseGeneric.GenericTestCase.getModulesToTest (   self,
  moduleList,
  packageList 
)

Get the list of modules to test.

Definition at line 55 of file TestCaseGeneric.py.

References TestCenterAdvanced.TestCaseGeneric.GenericTestCase.__testModule().

◆ getName()

◆ getType()

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.

Referenced by TestCenterAdvanced.TestCase.TestCase.run().

◆ run()

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 TestCenterAdvanced.TestCaseGeneric.GenericTestCase._moduleName.

Member Data Documentation

◆ _moduleName

TestCenterAdvanced.TestCaseGeneric.GenericTestCase._moduleName
protected

◆ _testCaseName


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