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

Class TestResultsPage
source code

web.DtmlPage --+        
               |        
 DefaultDtmlPage --+    
                   |    
          QMTestPage --+
                       |
                      TestResultsPage

DTML page for displaying test results.

Nested Classes [hide private]

Inherited from web.DtmlPage: default_class


Instance Methods [hide private]
  __init__(self, server)
Construct a new 'TestResultsPage'.
  GetOutcomes(self)
Return the list of result outcomes.
  GetTotal(self)
Return the total number of tests.
  GetTotalUnexpected(self)
Return the total number of unexpected results.
  GetResultsWithOutcome(self, outcome)
Return the number of tests with the given 'outcome'.
  GetCount(self, outcome)
Return the number of tests with the given 'outcome'.
  GetUnexpectedCount(self, outcome)
Return the number of tests with the given 'outcome'.
  GetRelativeResults(self, results, expected)
Return the results that match, or fail to match, expectations.
  GetDetailUrl(self, test_id)
Return the detail URL for a test.
  IsFinished(self)
Return true iff no more results are forthcoming.
  GetRefreshDelay(self)
Returns the number of seconds to wait before refreshing the page.

Inherited from QMTestPage: GenerateHtmlHeader, GenerateStartBody, GetExpectationUrl

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)
(Constructor)

source code 

Construct a new 'TestResultsPage'.

'server' -- The 'QMTestServer' creating this page.
Overrides: QMTestPage.__init__

GetOutcomes(self)

source code 

Return the list of result outcomes.

returns -- A sequence of result outcomes.

GetTotal(self)

source code 

Return the total number of tests.

returns -- The total number of tests.

GetTotalUnexpected(self)

source code 

Return the total number of unexpected results.

returns -- The total number of unexpected results.

GetResultsWithOutcome(self, outcome)

source code 

Return the number of tests with the given 'outcome'.

'outcome' -- One of the 'Result.outcomes'.

returns -- The results with the given 'outcome'.

GetCount(self, outcome)

source code 

Return the number of tests with the given 'outcome'.

'outcome' -- One of the 'Result.outcomes'.

returns -- The number of tests with the given 'outcome'.

GetUnexpectedCount(self, outcome)

source code 

Return the number of tests with the given 'outcome'.

'outcome' -- One of the 'Result.outcomes'.

returns -- The number of tests with the given 'outcome' that were expected to have some other outcome.

GetRelativeResults(self, results, expected)

source code 

Return the results that match, or fail to match, expectations.

'results' -- A sequence of 'Result' objects.

'expected' -- A boolean. If true, expected results are returned. If false, unexpected results are returned.

GetDetailUrl(self, test_id)

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'.

IsFinished(self)

source code 

Return true iff no more results are forthcoming.

returns -- True if no more tests are running.
Overrides: QMTestPage.IsFinished

GetRefreshDelay(self)

source code 

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.
Overrides: QMTestPage.GetRefreshDelay