Home | Trees | Index | Help |
---|
|
|
|||
__init__(self,
argument_list,
path)
Construct a new QMTest. |
|||
__del__(self)
Clean up global variables. |
|||
HasGlobalOption(self,
option)
Return true if 'option' was specified as a global command. |
|||
GetGlobalOption(self,
option,
default=None)
Return the value of global 'option', or 'default' if omitted. |
|||
HasCommandOption(self,
option)
Return true if command 'option' was specified. |
|||
GetCommandOption(self,
option,
default=None)
Return the value of command 'option'. |
|||
Execute(self)
Execute the command. |
|||
GetDatabase(self)
Return the test database to use. |
|||
GetDatabaseIfAvailable(self)
Return the test database to use. |
|||
GetTargetFileName(self)
Return the path to the file containing target specifications. |
|||
GetTargetsFromFile(self,
file_name)
Return the 'Target's specified in 'file_name'. |
|||
GetTargets(self)
Return the 'Target' objects specified by the user. |
|||
GetTracer(self)
Return the 'Tracer' associated with this instance of QMTest. |
|||
MakeContext(self)
Construct a 'Context' object for running tests. |
|||
GetExecutablePath(self)
Return the path to the QMTest executable. |
|||
GetFileResultStreamClass(self)
Return the 'ResultStream' class used for results files. |
|||
GetTextResultStreamClass(self)
Return the 'ResultStream' class used for textual feedback. |
|||
__GetAttributeOptions(self,
expect_value=True)
Return the attributes specified on the command line. |
|||
__GetAnnotateOptions(self)
Return all annotate options. |
|||
__ExecuteCreate(self)
Create a new extension file. |
|||
__ExecuteCreateTdb(self,
db_path)
Handle the command for creating a new test database. |
|||
__ExecuteCreateTarget(self)
Create a new target file. |
|||
__ExecuteExtensions(self)
List the available extension classes. |
|||
__ExecuteDescribe(self)
Describe an extension. |
|||
__ExecuteList(self)
List the contents of the database. |
|||
__ExecuteRegister(self)
Register a new extension class. |
|||
__ExecuteSummarize(self)
Read in test run results and summarize. |
|||
__ExecuteRemote(self)
Execute the 'remote' command. |
|||
__ExecuteReport(self)
Execute a 'report' command. |
|||
__ExecuteRun(self)
Execute a 'run' command. |
|||
__ExecuteServer(self)
Process the server command. |
|||
__WriteCommandHelp(self,
command)
Write out help information about 'command'. |
|||
__FilterTestsToRun(self,
test_ids,
expectations)
Return those tests from 'test_ids' that should be run. |
|||
__CheckExtensionKind(self,
kind)
Check that 'kind' is a valid extension kind. |
|||
__CreateResultStreams(self,
output_file,
annotations,
expectations)
Return the result streams to use. |
|
Construct a new QMTest. Parses the argument list but does not execute the command. 'argument_list' -- The arguments to QMTest, not including the initial argv[0]. 'path' -- The path to the QMTest executable. |
|
Return true if 'option' was specified as a global command. 'command' -- The long name of the option, but without the preceding "--". returns -- True if the option is present. |
|
|
Return the value of command 'option'. 'option' -- The long form of an command-specific option. 'default' -- The default value to be returned if the 'option' was not specified. This option should be the kind of an option that takes an argument. returns -- The value specified by the option, or 'default' if the option was not specified. |
Execute the command. returns -- 0 if the command was executed successfully. 1 if there was a problem or if any tests run had unexpected outcomes. |
Return the test database to use. returns -- The 'Database' to use for this execution. Raises an exception if no 'Database' is available. |
Return the test database to use. returns -- The 'Database' to use for this execution, or 'None' if no 'Database' is available. |
Return the path to the file containing target specifications. returns -- The path to the file containing target specifications. |
Return the 'Target's specified in 'file_name'. returns -- A list of the 'Target' objects specified in the target specification file 'file_name'. |
Return the 'Target' objects specified by the user. returns -- A sequence of 'Target' objects. |
Return the 'Tracer' associated with this instance of QMTest. returns -- The 'Tracer' associated with this instance of QMTest. |
|
Return the path to the QMTest executable. returns -- A string giving the path to the QMTest executable. This is the path that should be used to invoke QMTest recursively. Returns 'None' if the path to the QMTest executable is uknown. |
Return the 'ResultStream' class used for results files. returns -- The 'ResultStream' class used for results files. |
Return the 'ResultStream' class used for textual feedback. returns -- the 'ResultStream' class used for textual feedback. |
Return the attributes specified on the command line. 'expect_value' -- True if the attribute is to be parsed as an assignment. returns -- A dictionary. If expect_value is True, it maps attribute names (strings) to values (strings). Else it contains the raw attribute strings, mapping to None. There is an entry for each attribute specified with '--attribute' on the command line. |
Return all annotate options. returns -- A dictionary containing the annotation name / value pairs. |
|
Handle the command for creating a new test database. 'db_path' -- The path at which to create the new test database. |
|
|
|
|
|
|
|
|
|
|
Write out help information about 'command'. 'command' -- The name of the command for which help information is required. |
Return those tests from 'test_ids' that should be run. 'test_ids' -- A sequence of test ids. 'expectations' -- An ExpectationDatabase. returns -- Those elements of 'test_names' that are not to be skipped. If 'a' precedes 'b' in 'test_ids', and both 'a' and 'b' are present in the result, 'a' will precede 'b' in the result. |
Check that 'kind' is a valid extension kind. 'kind' -- A string giving the name of an extension kind. If the 'kind' does not name a valid extension kind, an appropriate exception is raised. |
Return the result streams to use. 'output_file' -- If not 'None', the name of a file to which the standard results file format should be written. 'annotations' -- A dictionary with annotations for this test run. 'expectations' -- An ExpectationDatabase. returns -- A list of 'ResultStream' objects, as indicated by the user. |
|
__extension_kinds_stringA string listing the available extension kinds.
|
db_path_environment_variableThe environment variable specifying the test database path.
|
summary_formatsValid formats for result summaries.
|
context_file_nameThe default name of a context file.
|
expectations_file_nameThe default name of a file containing expectations.
|
results_file_nameThe default name of a file containing results.
|
target_file_nameThe default name of a file containing targets.
|
help_option_spec
|
version_option_spec
|
db_path_option_spec
|
extension_output_option_spec
|
extension_id_option_spec
|
output_option_spec
|
no_output_option_spec
|
outcomes_option_spec
|
expectations_option_spec
|
context_option_spec
|
context_file_spec
|
daemon_option_spec
|
port_option_spec
|
address_option_spec
|
log_file_option_spec
|
no_browser_option_spec
|
pid_file_option_spec
|
concurrent_option_spec
|
targets_option_spec
|
random_option_spec
|
rerun_option_spec
|
seed_option_spec
|
format_option_spec
|
result_stream_spec
|
annotation_option_spec
|
tdb_class_option_spec
|
attribute_option_spec
|
set_attribute_option_spec
|
extension_kind_option_spec
|
report_output_option_spec
|
report_flat_option_spec
|
results_option_spec
|
list_long_option_spec
|
list_details_option_spec
|
list_recursive_option_spec
|
conflicting_option_specs
|
global_options_spec
|
commands_spec
|
__version_outputThe string printed when the --version option is used. There is one fill-in, for a string, which should contain the version number.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:33 2007 | http://epydoc.sf.net |