Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If CompareGt Call AttributeLoad NameLoad attr Str Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass TryExcept body If CompareIs Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Continue orelse Expr Yield NameLoad decorator_list Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Str For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad TupleLoad Str Str body Print BinOpMod NameLoad TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Return Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call NameLoad NameLoad body If CompareIs NameLoad NameLoad body Continue Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Dict Assign AttributeStore NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call AttributeLoad Str attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
An interface for running test cases as unattended jobs.
 N/A sys N/A os pycopia logging pycopia aid pycopia shparser pycopia getopt pycopia.QA testloader pycopia.db models _parse_parameters N/A N/A text N/A N/A _ParserCB N/A N/A d argv N/A N/A N/A param argv N/A N/A N/A N/A N/A param find = 0 N/A N/A N/A key value N/A N/A param split = 1 N/A N/A d N/A key value N/A N/A d N/A N/A p N/A N/A shparser ShellParser N/A N/A aid partial _ParserCB d N/A N/A N/A p feed text N/A N/A N/A p feed N/A d N/A get_test_jobs N/A N/A args N/A N/A N/A dbsession N/A N/A models get_session N/A TJ N/A models TestJob N/A jobid args N/A N/A N/A N/A jobid N/A int jobid N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A N/A type jobid int N/A N/A testjob N/A N/A N/A N/A dbsession query TJ get jobid N/A N/A testjob N/A N/A N/A N/A N/A N/A dbsession query TJ filter N/A N/A TJ name jobid one N/A N/A N/A N/A models NoResultFound N/A N/A N/A N/A logging warn N/A No TestJob with id %r jobid N/A N/A N/A N/A testjob N/A N/A JobRunnerInterfaceDoc 
Invoke a test job (TestJob object) from a shell.

Test jobs encapsulate a test suite, environment, parameters, user, and
report. Therefore these things are not supplied to this interface.
However, some shared configuration parameters may be supplied as long
options to this job runner.

A job is selected by its ID number, or its unique name.

Only automated, non-interactive tests should be added to suite run by
a test job.

Often run from cron.

Usage:

    %s [-h?] arg...

    Where the arguments are job names or job id.

    Options:
        -h -- Print help text and return.

    Long-style options are passed into the test suite configuration.
 JobRunnerInterface N/A object N/A __init__ N/A N/A self testrunner N/A N/A N/A N/A self runner testrunner N/A cf N/A N/A self runner config N/A N/A N/A cf flags DEBUG 0 N/A N/A N/A cf flags VERBOSE 0 N/A N/A N/A cf flags INTERACTIVE False N/A N/A cf userinterfacetype none N/A __call__ N/A N/A self argv N/A N/A N/A Invoke the job runner by calling it with argument list.
         N/A cf N/A N/A self runner config N/A N/A optlist extraopts args N/A N/A getopt getopt N/A argv N/A 1 h? N/A N/A opt optarg optlist N/A N/A N/A opt N/A -h -? N/A N/A N/A JobRunnerInterfaceDoc N/A N/A N/A N/A os path basename N/A argv N/A 0 N/A N/A N/A N/A cf evalupdate extraopts N/A N/A N/A N/A self runner set_options extraopts N/A testjob N/A get_test_jobs args N/A N/A N/A testjob None N/A N/A N/A N/A cf environmentname N/A N/A testjob environment name N/A N/A N/A self is_job_running N/A testjob id N/A N/A N/A N/A N/A self create_job_lock N/A testjob id N/A N/A N/A N/A testjob parameters N/A N/A params N/A _parse_parameters N/A testjob parameters N/A N/A cf arguments N/A N/A N/A testjob parameters split N/A N/A params N/A N/A N/A cf argv N/A N/A N/A testjob suite name N/A N/A cf comment N/A Automated test job %s(%s). N/A N/A testjob name N/A testjob id N/A N/A cf reportname N/A testjob reportname N/A N/A N/A cf evalupdate params N/A N/A N/A N/A self runner set_options params N/A suite N/A get_suite N/A testjob suite cf N/A N/A N/A N/A self runner initialize N/A N/A N/A N/A self runner run_object suite N/A N/A N/A N/A self runner finalize N/A N/A N/A N/A self remove_job_lock N/A testjob id N/A create_job_lock N/A N/A self jobid N/A N/A N/A lf N/A N/A self _get_job_lockfile jobid N/A N/A N/A N/A open lf w close N/A remove_job_lock N/A N/A self jobid N/A N/A N/A lf N/A N/A self _get_job_lockfile jobid N/A N/A N/A os unlink lf N/A is_job_running N/A N/A self jobid N/A N/A N/A lf N/A N/A self _get_job_lockfile jobid N/A N/A N/A N/A os path exists lf N/A _get_job_lockfile N/A N/A self jobid N/A N/A N/A envname N/A N/A N/A self runner config environmentname N/A N/A N/A /var/tmp/testjob_{0}_{1}.lock format envname jobid N/A N/A get_suite N/A N/A dbsuite config N/A N/A N/A suite N/A N/A testloader get_suite dbsuite config N/A dbtestcase N/A dbsuite testcases N/A N/A testclass N/A N/A testloader get_test_class dbtestcase N/A N/A testclass None N/A N/A N/A N/A suite add_test testclass N/A subsuite N/A dbsuite subsuites N/A N/A N/A N/A suite add_suite N/A get_suite subsuite config N/A suite N/A