Package qm :: Package test :: Package web :: Module web :: Class DirReportPage
[hide private]
[frames] | no frames]

Class DirReportPage

source code

web.DtmlPage --+        
               |        
 DefaultDtmlPage --+    
                   |    
    QMTestReportPage --+
                       |
                      DirReportPage

A run database directory page.

These attributes are available in DTML:

'path' -- The label directory that is being displayed.

'subdirs' -- A sequence of labels giving the subdirectories of this directory.

'test_ids' -- A sequence of labels giving the tests in this directory.

'suite_ids' -- A sequence of labels giving the suites in this directory.

'resource_ids' -- A sequence of labels giving the resources in this directory.

Nested Classes [hide private]

Inherited from web.DtmlPage: default_class

Instance Methods [hide private]
 
__init__(self, server, path)
Construct a 'DirPage'.
source code
 
GetItems(self, kind=Result.TEST)
Return information about all of the items.
source code
 
MakeTestRunUrl(self, test_run)
Return the URL for navigating a particular test run.
source code

Inherited from QMTestReportPage: FormatTimeIso, GenerateHtmlHeader, GenerateStartBody, GetResultURL, GetRunDatabase

Inherited from DefaultDtmlPage: FormatId, GetDatabase, GetMainPageUrl, GetName, GetOutcomePercentages, GetResultsByOutcome, HasModifiableExpectations, IsLabelInDirectory, MakeListingUrl

Inherited from web.DtmlPage: GenerateEndBody, GenerateEndScript, GenerateStartScript, GenerateXMLHeader, GetProgramName, MakeButton, MakeImageUrl, MakeLoginForm, MakeRule, MakeSpacer, UserIsInGroup, WebRequest, __call__

Class Variables [hide private]
  SORT_NAME = 'name'
Sort by name.
  SORT_OUTCOME = 'outcome'
Sort by outcome.
  SORT_EXPECTATION = 'expectation'
Sort by expectation.
  SORT_KINDS = [SORT_NAME, SORT_OUTCOME, SORT_EXPECTATION]
The kinds of sorting available.

Inherited from DefaultDtmlPage: EXPECTATION_KINDS, EXPECTED, NEGATIVE_UNEXPECTED, POSITIVE_UNEXPECTED, html_generator, outcomes

Inherited from web.DtmlPage: common_javascript, html_stylesheet, qm_bug_system_url, web

Method Details [hide private]

__init__(self, server, path)
(Constructor)

source code 

Construct a 'DirPage'.

'server' -- The 'QMTestServer' creating this page.

'path' -- The label directory to display.

Overrides: web.DtmlPage.__init__

GetItems(self, kind=Result.TEST)

source code 

Return information about all of the items.

returns -- A sequence of 'Item' instances corresponding to all of the tests in this diretory.


Class Variable Details [hide private]

SORT_EXPECTATION

Sort by expectation. In other words, put unexpected outcomes before expected outcomes.

Value:
'expectation'