Module test :: Class TestCase
[hide private]
[frames] | no frames]

type TestCase

source code

object --+
         |
        TestCase

Class representing a test case: various parameters and lists of devices and scripts.

Instance Methods [hide private]
 
__init__(self) source code
 
generate_test_data(self, params, rand_gen)
Creates the elements of a test case: lists of devices, locations, encounters, scripts
source code
Static Methods [hide private]
TestCase
create_simple_test_case()
Creates a basic test case without using parameters provided in a test file.
source code
TestCase
create_sharing1_test_case()
Creates a stress test for shared data synchronization.
source code
TestCase
create_sharing2_test_case()
Creates a stress test for shared data synchronization.
source code
 
create_test_case(params, rand_gen)
Creates a test case using the provided parameters.
source code
Instance Variables [hide private]
  scripts
Create encounters
Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

create_simple_test_case()
Static Method

source code 

Creates a basic test case without using parameters provided in a test file.

Returns: TestCase
a TestCase object

create_sharing1_test_case()
Static Method

source code 

Creates a stress test for shared data synchronization.

Returns: TestCase
a TestCase object

create_sharing2_test_case()
Static Method

source code 

Creates a stress test for shared data synchronization.

Returns: TestCase
a TestCase object

create_test_case(params, rand_gen)
Static Method

source code 

Creates a test case using the provided parameters.

Parameters:
  • params (TestParams) - a TestCase specification
  • rand_gen (Random) - a random generator used for creating the test case's components
Returns:
a TestCase object

generate_test_data(self, params, rand_gen)

source code 

Creates the elements of a test case: lists of devices, locations, encounters, scripts

Parameters:
  • params (TestParams) - the test for which the elements are generated
  • rand_gen (Random) - a random generator