Package com :: Package dtmilano :: Package android :: Module viewclient :: Class CulebraTestCase |
[hide private]
[frames] | no frames]

# Class CulebraTestCase

source code

    The base class for all CulebraTests.

    Class variables
    ---------------
    There are some class variables that can be used to change the behavior of the tests.

    B{serialno}: The serial number of the device. This can also be a list of devices for I{mutli-devices}
    tests or the keyword C{all} to run the tests on all available devices or C{default} to run the tests
    only on the default (first) device.

    When a I{multi-device} test is running the available devices are available in a list named
    L{self.devices} which has the corresponding L{ConnectedDevices} entries.

    Also, in the case of I{multi-devices} tests and to be backward compatible with I{single-device} tests
    the default device, the first one in the devices list, is assigned to L{self.device}, L{self.vc} and
    L{self.serialno} too.

    B{verbose}: The verbosity of the tests. This can be changed from the test command line using the
    command line option C{-v} or C{--verbose}.

Nested Classes | [hide private]
| __Log Log class to simulate `android.util.Log`
Inherited from `unittest.case.TestCase`: `failureException`

Instance Methods | [hide private]
__init__(self, methodName=`'``runTest``'`) Create an instance of the class that will use the named test method when executed. | source code
setUp(self) Hook method for setting up the test fixture before exercising it. | source code
tearDown(self) Hook method for deconstructing the test fixture after testing it. | source code
preconditions(self) | source code
isTestRunningOnMultipleDevices(self) | source code
all(self, arg, _filter=None) | source code
allVcs(self, _filter=None) | source code
allDevices(self, _filter=None) | source code
allSerialnos(self, _filter=None) | source code
log(self, message, priority=`'``D``'`) Logs a message with the specified priority. | source code
Inherited from `unittest.case.TestCase`: `__call__`, `__eq__`, `__hash__`, `__ne__`, `__repr__`, `__str__`, `addCleanup`, `addTypeEqualityFunc`, `assertAlmostEqual`, `assertAlmostEquals`, `assertDictContainsSubset`, `assertDictEqual`, `assertEqual`, `assertEquals`, `assertFalse`, `assertGreater`, `assertGreaterEqual`, `assertIn`, `assertIs`, `assertIsInstance`, `assertIsNone`, `assertIsNot`, `assertIsNotNone`, `assertItemsEqual`, `assertLess`, `assertLessEqual`, `assertListEqual`, `assertMultiLineEqual`, `assertNotAlmostEqual`, `assertNotAlmostEquals`, `assertNotEqual`, `assertNotEquals`, `assertNotIn`, `assertNotIsInstance`, `assertNotRegexpMatches`, `assertRaises`, `assertRaisesRegexp`, `assertRegexpMatches`, `assertSequenceEqual`, `assertSetEqual`, `assertTrue`, `assertTupleEqual`, `assert_`, `countTestCases`, `debug`, `defaultTestResult`, `doCleanups`, `fail`, `failIf`, `failIfAlmostEqual`, `failIfEqual`, `failUnless`, `failUnlessAlmostEqual`, `failUnlessEqual`, `failUnlessRaises`, `id`, `run`, `shortDescription`, `skipTest` Inherited from `unittest.case.TestCase` (private): `_addSkip`, `_baseAssertEqual`, `_deprecate`, `_formatMessage`, `_getAssertEqualityFunc`, `_truncateMessage` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Class Methods | [hide private]
setUpClass(cls) Hook method for setting up class fixture before running tests in the class. | source code
tearDownClass(cls) Hook method for deconstructing the class fixture after running all tests in the class. | source code

Static Methods | [hide private]
__passAll(arg) | source code
main() | source code

Class Variables | [hide private]
| kwargs1 = `None`
| kwargs2 = `None`
| devices = `None` The list of connected devices
| globalDevices = ``[``]`` The list of connected devices (class instance)
| defaultDevice = `None` The default ConnectedDevice.
| serialno = `None` The default connected device `serialno`
| device = `None` The default connected device
| vc = `None` The default connected device `ViewClient`
| verbose = `False`
| options = ``{``}``
Inherited from `unittest.case.TestCase`: `longMessage`, `maxDiff` Inherited from `unittest.case.TestCase` (private): `_classSetupFailed`, `_diffThreshold`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### setUpClass(cls) Class Method | source code
Hook method for setting up class fixture before running tests in the class. Overrides: unittest.case.TestCase.setUpClass (inherited documentation)

### tearDownClass(cls) Class Method | source code
Hook method for deconstructing the class fixture after running all tests in the class. Overrides: unittest.case.TestCase.tearDownClass (inherited documentation)

### __init__(self, methodName=`'``runTest``'`) (Constructor) | source code
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name. Overrides: object.__init__ (inherited documentation)

### setUp(self) | source code
Hook method for setting up the test fixture before exercising it. Overrides: unittest.case.TestCase.setUp (inherited documentation)

### tearDown(self) | source code
Hook method for deconstructing the test fixture after testing it. Overrides: unittest.case.TestCase.tearDown (inherited documentation)

Class Variable Details | [hide private]

  ### defaultDevice The default ConnectedDevice. Set to the first one found for multi-device cases Value:
      None