Package qm :: Module test :: Module suite :: Class Suite
[hide private]
[frames] | no frames]

Class Suite
source code

         object --+    
                  |    
extension.Extension --+
                      |
                     Suite
Known Subclasses:
directory_suite.DirectorySuite, parameter_database.ParameterDatabase.ImplicitSuite, parameter_database.ParameterDatabase.ParameterSuite, parameter_database.ParameterDatabase.WrapperSuite, classes.mount_database.MountDatabase.MountedSuite, classes.explicit_suite.ExplicitSuite

A collection of tests.

 A test suite is a collection of tests.  The suite may contain other
suites by reference as well; all tests contained in these contained
suites are considered contained in the containing suite as well.



Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  GetAllTestAndSuiteIds(self)
Return the tests/suites contained in this suite and its subsuites.
  GetDatabase(self)
Return the 'Database' that contains this suite.
  GetId(self)
Return the ID of this test suite.
  GetSuiteIds(self)
Return the suites contained in this suite.
  GetTestIds(self)
Return the tests contained in this suite.
  IsImplicit(self)
Return true if this is an implicit test suite.
  __init__(self, arguments=None, **args)
Construct a new 'Runnable'.

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]
EXTRA_DATABASE The name of the extra keyword argument to '__init__' that specifies the database containing the test or resource.
EXTRA_ID The name of the extra keyword argument to '__init__' that specifies the name of the test or resource.
arguments A list of the arguments to the extension class.
kind A string giving kind of extension is implemented by the class.

Inherited from object: __class__


Method Details [hide private]

GetAllTestAndSuiteIds(self)

source code 

Return the tests/suites contained in this suite and its subsuites.

returns -- A pair '(test_ids, suite_ids)'. The 'test_ids' and 'suite_ids' elements are both sequences of labels. The values returned include all tests and suites that are contained in this suite and its subsuites, recursively.

GetDatabase(self)

source code 

Return the 'Database' that contains this suite.

returns -- The 'Database' that contains this suite.

GetId(self)

source code 
Return the ID of this test suite.

GetSuiteIds(self)

source code 

Return the suites contained in this suite.

returns -- A sequence of labels corresponding to the suites contained in this suite. Suites that are contained in this suite only because they are contained in a suite which is itself contained in this suite are not returned.

GetTestIds(self)

source code 

Return the tests contained in this suite.

returns -- A sequence of labels corresponding to the tests contained in this suite. Tests that are contained in this suite only because they are contained in a suite which is itself contained in this suite are not returned.

IsImplicit(self)

source code 

Return true if this is an implicit test suite.

Implicit test suites cannot be edited.

__init__(self, arguments=None, **args)
(Constructor)

source code 

Construct a new 'Runnable'.

'arguments' -- As for 'Extension.__init__'.

'args' -- As for 'Extension.__init__'.
Overrides: extension.Extension.__init__

Class Variable Details [hide private]

EXTRA_DATABASE

The name of the extra keyword argument to '__init__' that specifies the database containing the test or resource.
Value:
'qmtest_database'                                                      
      

EXTRA_ID

The name of the extra keyword argument to '__init__' that specifies the name of the test or resource.
Value:
'qmtest_id'                                                            
      

arguments

A list of the arguments to the extension class.

Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument.

Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
Value:
[]                                                                     
      

kind

A string giving kind of extension is implemented by the class.

This field is used in an application-specific way; for example, QMTest has 'test' and 'target' extension classes.
Value:
'suite'