Package schrodinger :: Package test :: Package stu :: Module run :: Class Runner
[hide private]
[frames] | no frames]

Class Runner

object --+
         |
        Runner

Runner controls all job running parameters within the backend test utility code. It is also responsible for actually running the jobs and requesting their workups. The meat is in Runner.addScript, Runner.__call__ and Runner.executeScripts.

Instance Methods [hide private]
 
__init__(self, ui)
Initialize Runner Class
None
addScript(self, test_id, script)
Add script to be executed by self.__call__.
bool
__call__(self)
Execute and run workups on all scripts added to instance of Runner object.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  scripts
keys off test_id, values are testscripts.TestScript.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ui)
(Constructor)

 

Initialize Runner Class

Parameters:
  • ui (interface.UserInterface) - Contains information about the user interface (i.e. the command line arguments)
Overrides: object.__init__

addScript(self, test_id, script)

 

Add script to be executed by self.__call__. Adds the script information to self.job_runner.

Parameters:
  • test_id (str or int) - Name of the script. Typically its test number.
  • script (testscripts.TestScript) - Script to be added.
Returns: None

__call__(self)
(Call operator)

 

Execute and run workups on all scripts added to instance of Runner object. Outcomes stored in the TestScript objects in self.scripts.

This needs to be separate from the extraction step so that we can validate new tests.

Returns: bool