Home | Trees | Indices | Help |
---|
|
SocketServer.BaseServer --+ | SocketServer.TCPServer --+ | BaseHTTPServer.HTTPServer --+ | web.HTTPServer --+ | web.WebServer --+ | QMTestServer
A 'QMTestServer' is the web GUI interface to QMTest.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from Inherited from |
|
Create and bind an HTTP server. 'database' -- The test database to serve. 'port' -- The port number on which to accept HTTP requests. 'address' -- The local address to which to bind the server. An empty string indicates all local addresses. 'log_file' -- A file object to which the server will log requests. 'None' for no logging. 'targets' -- A sequence of 'Target' objects to use when running tests. 'context' -- The 'Context' in which tests will execute.
|
Return the 'Context' in which tests will be run. returns -- The 'Context' in which tests will be run. |
Return the 'Database' handled by this server. returns -- The 'Database' handled by this server. |
Return the 'RunDatabase' handled by this server. returns -- The 'RunDatabase' handled by this server. |
Return the current ExpectationDatabase. returns -- The ExpectationDatabase instance. |
Return the current expected outcomes for the test database. returns -- A map from test IDs to outcomes. Some tests may have not have an entry in the map. |
Return the CSS class for the 'outcome'. 'outcome' -- One of the result outcomes. returns -- The name of a CSS class. These are used with <span> elements. See 'qm.css'. |
Return the 'StorageResultsStream' containing test results. returns -- The 'StorageResultsStream' associated with this server. |
Handle a request to clear the current test results. 'request' -- A 'WebRequest' object. |
Handle a submission of a new test suite. 'request' -- A 'WebRequest' object. |
Handle a request to delete a test or resource. This function handles the script requests 'delete-test' and 'delete-resource'. 'request' -- A 'WebRequest' object. The ID of the test or resource to delete is specified in the 'id' field of the request. |
Handle a request to delete a test suite. 'request' -- A 'WebRequest' object. The ID of the suite to delete is specified in the 'id' field of the request. |
Generate a directory page. 'request' -- A 'WebRequest' object. The request has these fields: 'path' -- A path in test/resource/suite ID space. If specified, only tests and resources in this subtree are displayed, and their IDs are displayed relative to this path. If omitted, the entire contents of the test database are shown. |
Generate a directory report page. 'request' -- A 'WebRequest' object. The request has these fields: 'path' -- A path in test/resource/suite ID space. If specified, only tests and resources in this subtree are displayed, and their IDs are displayed relative to this path. If omitted, the entire contents of the test database are shown. |
Handle a request to edit the context. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to upload a context file. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to upload results. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to upload results. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to create a new test. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to create a new test. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to create a new suite. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to run tests. 'request' -- The 'WebRequest' that caused the event. These fields in 'request' are used: 'ids' -- A comma-separated list of test and suite IDs. These IDs are expanded into the list of IDs of tests to run. |
Handlea request to save the context to a file. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to save expectations to a file. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to save results to a file. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to set expectations. 'request' -- A 'WebRequest' object. |
Handle a request to show a test or resource. 'request' -- A 'WebRequest' object. This function generates pages to handle these requests: 'create-test' -- Generate a form for initial editing of a test about to be created, given its test ID and test class. 'create-resource' -- Likewise for an resource. 'show-test' -- Display a test. 'show-resource' -- Likewise for an resource. 'edit-test' -- Generate a form for editing an existing test. 'edit-resource' -- Likewise for an resource. This function distinguishes among these cases by checking the script name of the request object. The request must have the following fields: 'id' -- A test or resource ID. For show or edit pages, the ID of an existing item. For create pages, the ID of the item being created. 'class' -- For create pages, the name of the test or resource class. |
Handle a request to show result detail. If a 'test_run' argument was provided, fetch the result from the corresponding test run. Else read it from the results stream. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to show results. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to show a test or resource report. 'request' -- A 'WebRequest' object. This function generates pages to handle these requests: 'show-test' -- Display a test. 'show-resource' -- Likewise for an resource. This function distinguishes among these cases by checking the script name of the request object. The request must have the following fields: 'id' -- A test or resource ID. For show or edit pages, the ID of an existing item. For create pages, the ID of the item being created. |
Handle a request to show result report. 'request' -- The 'WebRequest' that caused the event. |
Generate the page for displaying or editing a test suite. 'request' -- A 'WebRequest' object. 'edit' -- If true, display the page for editing the suite. Otherwise, just display the suite. The request has the following fields: 'id' -- The ID of the suite to display or edit. |
Handle a request to shut down the server. 'request' -- The 'WebRequest' that caused the event. |
Handle a request to stop test execution. 'request' -- The 'WebRequest' that caused the event. |
Handle a context submission.. 'request' -- The 'WebRequest' that caused the event. The 'request' must have a 'context_vars' key, whose value is the the context variables. |
Handle a context file submission.. 'request' -- The 'WebRequest' that caused the event. |
Handle setting a single expectation. 'request' -- The 'WebRequest' that caused the event. |
Handle uploading expected results. 'request' -- The 'WebRequest' that caused the event. |
Handle uploading expected results. 'request' -- The 'WebRequest' that caused the event. |
Handle a test or resource submission. This function handles submission of the test or resource editing form generated by 'handle_show'. The script name in 'request' should be 'submit-test' or 'submit-resource'. It constructs the appropriate 'Test' or 'Resource' object and writes it to the database, either as a new item or overwriting an existing item. The request must have the following form fields: 'id' -- The test or resource ID of the item being edited or created. 'class' -- The name of the test or resource class of this item. arguments -- Argument values are encoded in fields whose names start with 'qm.fields.Field.form_field_prefix'. |
Handle uploading results. 'request' -- The 'WebRequest' that caused the event. |
Handle test suite submission. 'request' -- A 'WebRequest' object. The request object has these fields: 'id' -- The ID of the test suite being edited. If a suite with this ID exists, it is replaced (it must not be an implicit suite though). Otherwise a new suite is edited. 'test_ids' -- A comma-separated list of test IDs to include in the suite, relative to the suite's own ID. 'suite_ids' -- A comma-separated list of other test suite IDs to include in the suite, relative to the suite's own ID. |
Create a new test with default arguments. 'test_class_name' -- The name of the test class of which to create a new test. 'test_id' -- The test ID of the new test. returns -- A new 'TestDescriptor' object. |
Create a new resource with default arguments. 'resource_class_name' -- The name of the resource class of which to create a new resource. 'resource_id' -- The resource ID of the new resource. returns -- A new 'ResourceDescriptor' object. |
Handle the '/' URL.
|
Close the current window. Redirect the main window to 'url'. 'url' -- A string giving the URL to which the main window should be redirected. returns -- A string giving HTML that will close the current window and redirect the main window to 'url'. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:42 2011 | http://epydoc.sourceforge.net |