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 and Runner.__call__.

Instance Methods [hide private]
 
__init__(self, ui)
Initialize Runner Class
None
addScript(self, test)
Add test to be executed by self.__call__.
bool
__call__(self)
Execute and run workups on all tests 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]
  tests
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)

 

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

Parameters:
  • test (testscripts.TestScript) - Test to be executed.
  • test_id (str or int or NoneType) - Name of the test. Typically its test number. If None, Test ID is determined directly from the test.
Returns: None

__call__(self)
(Call operator)

 

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

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

Returns: bool