DTML page for displaying test results.
Methods
|
|
|
|
GetCount
|
GetCount ( self, outcome )
Return the number of tests with the given outcome .
-
outcome
- One of the
Result.outcomes .
- returns
- The number of tests with the given
outcome .
|
|
GetDetailUrl
|
GetDetailUrl ( self, test_id )
Return the detail URL for a test.
-
test_id
- The name of the test.
- returns
- The URL that contains details about the
test_id .
|
|
GetOutcomes
|
GetOutcomes ( self )
Return the list of result outcomes.
- returns
- A sequence of result outcomes.
|
|
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.
|
|
GetRelativeResults
|
GetRelativeResults (
self,
results,
expected,
)
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.
|
|
GetResultsWithOutcome
|
GetResultsWithOutcome ( self, outcome )
Return the number of tests with the given outcome .
-
outcome
- One of the
Result.outcomes .
- returns
- The results with the given
outcome .
|
|
GetTotal
|
GetTotal ( self )
Return the total number of tests.
- returns
- The total number of tests.
|
|
GetTotalUnexpected
|
GetTotalUnexpected ( self )
Return the total number of unexpected results.
- returns
- The total number of unexpected results.
|
|
GetUnexpectedCount
|
GetUnexpectedCount ( self, outcome )
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.
|
|
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, server )
Construct a new TestResultsPage .
-
server
- The
QMTestServer creating this page.
|