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

def __init__ (self, testCaseName, moduleName=None)
 The default constructor. More...
 
def run (self, xmlNode)
 Prior to running the actual test the module name is set to the result node. More...
 
def getName (self)
 Return the name of the test case. More...
 
def getModulesToTest (self, moduleList, packageList)
 Get the list of modules to test. More...
 
- Public Member Functions inherited from TestCenterAdvanced.TestCase.TestCase
def __init__ (self, testCaseName, isNewlyCreated=False)
 Default constructor for the test case. More...
 
def __del__ (self)
 The default destructor. More...
 
def destroyContext (self)
 
def activate (self)
 
def deactivate (self)
 
def setTestCaseListener (self, testCaseListener)
 
def addExtraTestCaseResult (self, extraTestCaseResult)
 
def callFieldValueTestCase (self, filename, testcase)
 Call the given field-value test case from the given field-value test case set. More...
 
def isValid (self)
 Has test case loaded without syntax errors? More...
 
def hasNetwork (self)
 Check whether the test case has a network attached. More...
 
def networkFileName (self)
 Returns the absolute file name of the attached network or an empty string if no network is attached. More...
 
def openFiles (self)
 Open the files associated with the test case. More...
 
def openNetwork (self)
 Open the internal network of the test case. More...
 
def getType (self)
 Return the type of this test case (generic of functional). More...
 
def getModule (self)
 Return the module, might be None. More...
 
def getName (self)
 Return the name of the test case. More...
 
def getListOfTestFuncs (self)
 Get a list of test functions this test has. More...
 
def getPackage (self)
 Return the identifier of the package the test case is in. More...
 
def getTestCaseNode (self)
 Return the XML node with the test case's information. More...
 
def run (self, resultNode)
 Run the test case and store results in the given xml data structure. More...
 
def getDocumentation (self, functionName)
 Get the documentation for the given test function. More...
 

Additional Inherited Members

- Public Attributes inherited from TestCenterAdvanced.TestCase.TestCase
 futureDone
 

Detailed Description

The implementation of the TestCase superclass for generic testing.

Definition at line 19 of file TestCaseGeneric.py.

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ getModulesToTest()

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

Get the list of modules to test.

Definition at line 57 of file TestCaseGeneric.py.

References TestCenterAdvanced.TestCaseGeneric.GenericTestCase.__testModule().

◆ getName()

def TestCenterAdvanced.TestCaseGeneric.GenericTestCase.getName (   self)

◆ run()

def TestCenterAdvanced.TestCaseGeneric.GenericTestCase.run (   self,
  xmlNode 
)

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