Class: QMTest | qm/test/cmdline.py | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
An instance of QMTest.
|
GetTargetsFromFile
|
| GetTargetsFromFile ( self, file_name ) Return the 'Target's specified in
|
Exceptions | |
---|---|
QMException, qm.error( "could not load target file", file = file_name ) |
GetTextResultStreamClass ( self )
ResultStream
class used for textual feedback.ResultStream
class used for textual
feedback.GetTracer ( self )
Tracer
associated with this instance of QMTest.Tracer
associated with this instance of QMTest.HasCommandOption ( self, option )
Return true if command option
was specified.
HasGlobalOption ( self, option )
option
was specified as a global command.command
MakeContext ( self )
Construct a Context
object for running tests.
Exceptions | |
---|---|
qm.cmdline.CommandError, msg |
__CheckExtensionKind ( self, kind )
kind
is a valid extension kind.kind
kind
does not name a valid extension kind, an appropriate
exception is raised.Exceptions | |
---|---|
qm.cmdline.CommandError, qm.error( "invalid extension kind", kind = kind ) |
__ExecuteCreate ( self )
Create a new extension file.
__ExecuteCreateTarget ( self )
Create a new target file.
__ExecuteCreateTdb ( self, db_path )
db_path
__ExecuteExtensions ( self )
List the available extension classes.
__ExecuteRegister ( self )
Register a new extension class.
Exceptions | |
---|---|
qm.QMException, qm.error( "module does not exist", module = module ) qm.cmdline.CommandError, qm.error( "invalid class name", class_name = class_name ) qm.cmdline.CommandError, qm.error( "invalid extension kind", kind = kind ) |
__ExecuteRemote ( self )
Execute the remote
command.
__ExecuteRun ( self )
Execute a run
command.
Exceptions | |
---|---|
qm.cmdline.CommandError, qm.error( "seed not integer", seed = seed ) qm.cmdline.CommandError, qm.error("no such ID", id = str( exception ) ) qm.cmdline.CommandError, str( exception ) |
__ExecuteServer ( self )
Process the server command.
Exceptions | |
---|---|
qm.cmdline.CommandError, qm.error( "bad port number" ) qm.cmdline.CommandError, str( e ) |
__ExecuteSummarize ( self )
Read in test run results and summarize.
Exceptions | |
---|---|
QMException, qm.error("invalid results file", path = results_path, problem = str( exception ) ) qm.cmdline.CommandError, qm.error("no such ID", id = str( exception ) ) |
__FilterTestsToRun ( self, test_names )
test_names
that should be run.test_names
test_names
that are not to be
skipped. If a
precedes b
in test_names
, and both a
and
b
are present in the result, a
will precede b
in the
result.__GetAttributeOptions ( self )
--attribute
on the command line.__GetExpectedOutcomes ( self )
Exceptions | |
---|---|
qm.cmdline.CommandError, str( e ) |
__GetResultStreams ( self )
ResultStream
objects, as indicated by the
user.Exceptions | |
---|---|
qm.cmdline.CommandError, qm.error( "invalid results format", format = format, valid_formats = valid_format_string ) |
__WriteCommandHelp ( self, command )
command
.command
__init__ ( self, argument_list, path, )
Parses the argument list but does not execute the command.
argument_list
path