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

Class Suite

source code

         object --+    
                  |    
extension.Extension --+
                      |
                     Suite
Known Subclasses:

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]
 
__init__(self, arguments=None, **args)
Construct a new 'Runnable'.
source code
 
GetDatabase(self)
Return the 'Database' that contains this suite.
source code
 
GetId(self)
Return the ID of this test suite.
source code
 
GetTestIds(self)
Return the tests contained in this suite.
source code
 
GetSuiteIds(self)
Return the suites contained in this suite.
source code
 
IsImplicit(self)
Return true if this is an implicit test suite.
source code
 
GetAllTestAndSuiteIds(self)
Return the tests/suites contained in this suite and its subsuites.
source code

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

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

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

Inherited from object: __class__

Method Details [hide private]

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

source code 

Construct a new 'Runnable'.

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

'args' -- As for 'Extension.__init__'.

Overrides: object.__init__

GetDatabase(self)

source code 

Return the 'Database' that contains this suite.

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

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.

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.

IsImplicit(self)

source code 

Return true if this is an implicit test suite.

Implicit test suites cannot be edited.

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.