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

Class QMTestReportPage

source code

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

A 'QMTestReportPage' is a 'DtmlPage' for pages generated by QMTest.

A 'QMTestReportPage' automatically looks for DTML templates in the directory that contains QMTest DTML templates.

Nested Classes [hide private]

Inherited from web.DtmlPage: default_class

Instance Methods [hide private]
 
__init__(self, dtml_template, server)
Construct a new 'QMTestReportPage'.
source code
 
GetRunDatabase(self)
Returns the 'RunDatabase' in use.
source code
 
GenerateStartBody(self, decorations=1)
Return markup to start the body of the HTML document.
source code
 
GenerateHtmlHeader(self, description, headers="")
Return the header for an HTML document.
source code
 
GetResultURL(self, id, kind)
Generate a URL for the result page for 'id'.
source code
 
FormatTimeIso(self, time) source code

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, dtml_template, server)
(Constructor)

source code 

Construct a new 'QMTestReportPage'.

'dtml_template' -- The file name of the DTML template, relative to the directory that contains QMTest DTML templates. (Usually, this is just a basename.)

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

Overrides: web.DtmlPage.__init__

GetRunDatabase(self)

source code 

Returns the 'RunDatabase' in use.

returns -- The 'RunDatabase' in use.

GenerateStartBody(self, decorations=1)

source code 

Return markup to start the body of the HTML document.

Overrides: web.DtmlPage.GenerateStartBody
(inherited documentation)

GenerateHtmlHeader(self, description, headers="")

source code 

Return the header for an HTML document.

'description' -- A string describing this page.

'headers' -- Any additional HTML headers to place in the '<head>' section of the HTML document.

Overrides: web.DtmlPage.GenerateHtmlHeader

GetResultURL(self, id, kind)

source code 

Generate a URL for the result page for 'id'.

'id' -- The name of a test or resource.

'kind' -- either 'test' or 'resource'.

returns -- A url string for the result page for 'id'.