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'.
  GetItems(self, kind=Result.TEST)
Return information about all of the items.
  MakeTestRunUrl(self, test_run)
Return the URL for navigating a particular test run.

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 Sort by name.
SORT_OUTCOME Sort by outcome.
SORT_EXPECTATION Sort by expectation.
SORT_KINDS 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: QMTestReportPage.__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.

MakeTestRunUrl(self, test_run)

source code 
Return the URL for navigating a particular test run.

Class Variable Details [hide private]

SORT_NAME

Sort by name.
Value:
'name'                                                                 
      

SORT_OUTCOME

Sort by outcome.
Value:
'outcome'                                                              
      

SORT_EXPECTATION

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

SORT_KINDS

The kinds of sorting available.
Value:
['name', 'outcome', 'expectation']