Module tester :: Class Tester
[hide private]
[frames] | no frames]

type Tester

source code

object --+
         |
        Tester

Runs the test.

Instance Methods [hide private]
 
__init__(self, output_filename)
Constructor.
source code
 
run_test(self, testcase, num_iterations=1)
Performs a testcase generated from a given file or randomly.
source code
 
start_test(self, test)
Starts a child process that will run the test case.
source code
Static Methods [hide private]
 
timer_fn(iteration, num_iterations)
Timer function, it's executed in case of timeout when running a testcase
source code
Method Details [hide private]

__init__(self, output_filename)
(Constructor)

source code 

Constructor.

Parameters:
  • output_filename (String) - the file in which the tester logs results
Overrides: object.__init__

run_test(self, testcase, num_iterations=1)

source code 

Performs a testcase generated from a given file or randomly. To better check for synchronization errors the testcase is run several times, as given by the 'num_iterations' parameter.

Parameters:
  • testcase (TestCase) - the testcase to run
  • num_iterations (Integer) - number of time to run the test

timer_fn(iteration, num_iterations)
Static Method

source code 

Timer function, it's executed in case of timeout when running a testcase

Parameters:
  • iteration (integer) - the current iteration of the given testcase
  • num_iterations (integer) - the total number of iterations for the given testcase

start_test(self, test)

source code 

Starts a child process that will run the test case.

Parameters:
  • test (TestCase) - an object containing all the information necessary for running the test case