Methods
|
|
|
|
CountUnexpected
|
CountUnexpected ( self, results )
Count the unexpected results .
-
results
- A dictionary of the form returned by
GetUnexpectedResultsByOutcome .
- returns
- The total number of unexpected results.
|
|
GetDetailURL
|
GetDetailURL ( self, test_id )
Return the detail URL for test_id .
-
test_id
- The name of the test.
- returns
- The URL that contains details about the
test_id .
|
|
GetExpectation
|
GetExpectation ( self, test_id )
Return the expected outcome for test_id .
-
test_id
- The name of the test.
- returns
- A string giving the expected outcome for
test_id ,
or None if there is no expectation.
|
|
GetExpectationUrl
|
GetExpectationUrl (
self,
id,
expectation,
)
Return the URL for setting the expectation associated with id .
-
id
- The name of a test.
-
expectation
- The current expectation associated with the
test, or
None if there is no associated expectation.
|
|
GetOutcomePercentages
|
GetOutcomePercentages ( self, results )
Compute the percentage (by outcome) of the results .
-
results
- A sequence of
Result instances.
- returns
- A dictionary mapping outcomes to the percentage (as
a floating point number) of tests in
results that have
that outcome.
|
|
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.
|
|
GetResultsByOutcome
|
GetResultsByOutcome ( self, results )
Compute the tests in results with each outcome.
-
results
- A sequence of
Result instances.
- returns
- A dictionary mapping outcomes to the sequence of
tests that have the indicated outcome in
results .
|
|
GetRunUrl
|
GetRunUrl ( self )
Return the URL for running this directory.
|
|
GetSortURL
|
GetSortURL ( self, sort )
Get the URL for this page, but sorted as indicated.
-
sort
- One of the
SORT_KINDS .
- returns
- A URL indicating this page, but sorted as
indicated.
|
|
GetTestOutcome
|
GetTestOutcome ( self, test_id )
Return the Result for test_id .
-
test_id
- The name of the test whose result is requested.
-
result
- The result associated with the
test_id , or
None if no result is available.
|
|
GetTestResultsForDirectory
|
GetTestResultsForDirectory ( self, directory )
Return all of the test results for tests in directory .
-
directory
- A string giving the label for a directory.
- returns
- A sequence of
Result instances corresponding to
results for tests from the indicated directory.
|
|
GetTests
|
GetTests ( self, sort )
Return information about all of the tests.
-
sort
- One of the
SORT_KINDS indicating how the results
should be sorted.
- returns
- A sequence of
_TestInformation instances
corresponding to all of the tests in this diretory.
|
|
GetUnexpectedOutcomePercentages
|
GetUnexpectedOutcomePercentages ( self, results )
Compute percentages of unexpected results .
-
results
- A sequence of
Result instances.
- returns
- A dictionary mapping the
EXPECTATION_KINDS to the
percentage (as a floating point number) of tests in results
that have that expectation.
|
|
GetUnexpectedResultsByOutcome
|
GetUnexpectedResultsByOutcome ( self, results )
Compute the tests in results with each outcome.
-
results
- A sequence of
Result instances.
- returns
- A dictionary mapping outcomes to the results with
that outcome -- and for which that outcome is unexpected.
The (fake) outcome
self.EXPECTED is mapped to expected
results.
|
|
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.
|
|
__IsLabelInDirectory
|
__IsLabelInDirectory (
self,
id,
directory,
)
Returns true if id is in directory .
- returns
- True if
id indicates a test contained in
directory , or one of its subdirectories.
|
|
__init__
|
__init__ (
self,
server,
path,
)
Construct a DirPage .
-
server
- The
QMTestServer creating this page.
-
path
- The label directory to display.
|