Table of Contents

Class: QMTestPage qm/test/web/web.py

A QMTestPage is a DtmlPage for pages generated by QMTest.

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

Base Classes   
DefaultDtmlPage
    qm.web.DtmlPage
Methods   
FormatId
GenerateHtmlHeader
GenerateStartBody
GetDatabase
GetRefreshDelay
GetServer
IsFinished
__init__
  FormatId 
FormatId (
        self,
        id,
        type,
        style="basic",
        )

Format id as HTML.

id
The name of a test or resource.
type
The kind of item named by id. Either resource, suite, or test.
style
The formatting style to use. One of plain, basic, navigation, or tree.
returns
A string containing HTML to use for id.
  GenerateHtmlHeader 
GenerateHtmlHeader (
        self,
        description,
        headers="",
        )

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.
  GenerateStartBody 
GenerateStartBody ( self,  decorations=1 )

  GetDatabase 
GetDatabase ( self )

Returns the Database in use.

returns
The Database in use.
  GetRefreshDelay 
GetRefreshDelay ( self )

Returns the number of seconds to wait before refreshing the page.

returns
The number of seconds to wait before refreshing this page. A value of zero means that te page should never be refreshed. This function is only called if IsFinished returns true.
  GetServer 
GetServer ( self )

Returns the QMTestServer serving this page.

returns
The QMTestServer serving this page.
  IsFinished 
IsFinished ( self )

Returns true if tests are still running.

returns
True if the data on this page should be considered incomplete due to the fact that tests are still running.
  __init__ 
__init__ (
        self,
        dtml_template,
        server,
        )

Construct a new QMTestPage.

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.

Table of Contents

This document was automatically generated on Mon Jan 3 09:42:32 2005 by HappyDoc version 2.1