TestCenter Reference
TestCenterAdvanced.TestCaseGeneric.GenericTestCase Class Reference

The implementation of the TestCase superclass for generic testing. More...

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

Public Member Functions

 __init__ (self, testCaseName, moduleName=None)
 The default constructor.
 
 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)
 The default destructor.
 
 destroyContext (self)
 
 activate (self)
 
 deactivate (self)
 
 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)
 Has test case loaded without syntax errors?
 
 hasNetwork (self)
 Check whether 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.
 
 getType (self)
 Return the type of this test case (generic of functional).
 
 getModule (self)
 Return the module, might be None.
 
 getListOfTestFuncs (self)
 Get a list of test functions this test has.
 
 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

 _testCaseType
 
 _moduleName
 
 _testCaseName
 
- Protected Attributes inherited from TestCenterAdvanced.TestCase.TestCase
 _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.
 
- Static Protected Attributes inherited from TestCenterAdvanced.TestCase.TestCase
 _ctx = None
 The TestCase's context.
 
 _testHelper = None
 The instance of the TestHelper singleton.
 
 _testCaseName = None
 The name of the current test case.
 
 _testCaseType = None
 The type of the test case.
 

Detailed Description

The implementation of the TestCase superclass for generic testing.

Definition at line 26 of file TestCaseGeneric.py.

Constructor & Destructor Documentation

◆ __init__()

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

The default constructor.

Reimplemented from TestCenterAdvanced.TestCase.TestCase.

Definition at line 29 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 64 of file TestCaseGeneric.py.

References TestCenterAdvanced.TestCaseGeneric.GenericTestCase.__testModule().

◆ getName()

◆ 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 37 of file TestCaseGeneric.py.

References TestCenterAdvanced.TestCaseGeneric.GenericTestCase._moduleName.

Member Data Documentation

◆ _moduleName

TestCenterAdvanced.TestCaseGeneric.GenericTestCase._moduleName
protected

◆ _testCaseName

◆ _testCaseType

TestCenterAdvanced.TestCaseGeneric.GenericTestCase._testCaseType
protected

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