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

Class ShowItemReportPage

source code

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

DTML page for showing tests and resources.

Nested Classes [hide private]

Inherited from web.DtmlPage: default_class

Instance Methods [hide private]
 
__init__(self, server, item, type, field_errors={})
Construct a new DTML context.
source code
 
GetTitle(self)
Return the page title for this page.
source code
 
FormatFieldValue(self, field)
Return an HTML rendering of the value for 'field'.
source code
 
GetClassDescription(self)
Return a full description of the test or resource class.
source code
 
GetBriefClassDescription(self)
Return a brief description of the test or resource class.
source code
 
MakeShowUrl(self)
Return the URL for showing this item.
source code
 
GetDetailUrl(self, test_run)
Return the detail URL for a test.
source code
 
GetResults(self, key=None)
Return the results from all runs that correpond to the current id.
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]

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, item, type, field_errors={})
(Constructor)

source code 

Construct a new DTML context.

These parameters are also available in DTML under the same name:

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

'item' -- The 'TestDescriptor' or 'ResourceDescriptor' for the test being shown.

'type' -- Either "test" or "resource".

'field_errors' -- A map from field names to corresponding error messages.

Overrides: web.DtmlPage.__init__

GetClassDescription(self)

source code 

Return a full description of the test or resource class.

returns -- The description, formatted as HTML.

GetBriefClassDescription(self)

source code 

Return a brief description of the test or resource class.

returns -- The brief description, formatted as HTML.

GetDetailUrl(self, test_run)

source code 

Return the detail URL for a test.

'test_id' -- The name of the test.

returns -- The URL that contains details about the 'test_id'.