Home | Trees | Indices | Help |
---|
|
web.DtmlPage --+ | DefaultDtmlPage --+ | QMTestPage --+ | DirPage
A test database directory page.
These attributes are available in DTML:
'path' -- The label directory that is being displayed.
'subdirs' -- A sequence of labels giving the subdirectories of this directory.
'test_ids' -- A sequence of labels giving the tests in this directory.
'suite_ids' -- A sequence of labels giving the suites in this directory.
'resource_ids' -- A sequence of labels giving the resources in this directory.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
SORT_NAME = 'name' Sort by name. |
|||
SORT_OUTCOME = 'outcome' Sort by outcome. |
|||
SORT_EXPECTATION = 'expectation' Sort by expectation. |
|||
SORT_KINDS = [SORT_NAME, SORT_OUTCOME, SORT_EXPECTATION] The kinds of sorting available. |
|||
Inherited from Inherited from |
|
Construct a 'DirPage'. 'server' -- The 'QMTestServer' creating this page. 'path' -- The label directory to display.
|
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. |
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. |
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. |
Count the unexpected 'results'. 'results' -- A dictionary of the form returned by 'GetUnexpectedResultsByOutcome'. returns -- The total number of unexpected results. |
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'. |
Return information about all of the tests. 'sort' -- One of the 'SORT_KINDS' indicating how the results should be sorted. returns -- A sequence of 'Item' instances corresponding to all of the tests in this diretory. |
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. |
Return the detail URL for 'test_id'. 'test_id' -- The name of the test. returns -- The URL that contains details about the '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. |
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. |
Return true iff no more results are forthcoming. returns -- True if no more tests are running.
|
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.
|
|
SORT_EXPECTATIONSort by expectation. In other words, put unexpected outcomes before expected outcomes.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:42 2011 | http://epydoc.sourceforge.net |