OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import os | |
6 | |
7 from pylib import constants | |
8 from pylib.base import test_instance | |
9 | |
10 class UirobotTestInstance(test_instance.TestInstance): | |
11 | |
12 def __init__(self, options): | |
13 """Constructor. | |
14 | |
15 Args: | |
16 options: Command line options. | |
17 """ | |
18 super(UirobotTestInstance, self).__init__() | |
19 self._apk_under_test = os.path.join( | |
20 constants.GetOutDirectory(), options.apk_under_test) | |
21 self._minutes = options.minutes | |
22 | |
23 #override | |
24 def TestType(self): | |
25 """Returns type of test.""" | |
26 return 'uirobot' | |
27 | |
28 #override | |
29 def SetUp(self): | |
30 """Setup for test.""" | |
jbudorick
2014/12/03 22:46:10
nit: Setup -> Set up
rnephew (Reviews Here)
2014/12/03 23:49:26
Done.
| |
31 pass | |
32 | |
33 #override | |
34 def TearDown(self): | |
35 """Teardown for test.""" | |
jbudorick
2014/12/03 22:46:10
nit: Teardown -> Tear down
rnephew (Reviews Here)
2014/12/03 23:49:26
Done.
| |
36 pass | |
37 | |
38 @property | |
39 def apk(self): | |
40 """Returns the name of the test to look for.""" | |
41 return 'uirobot' | |
42 | |
43 @property | |
44 def apk_under_test(self): | |
45 """Returns the app to run the test on.""" | |
46 return self._apk_under_test | |
47 | |
48 @property | |
49 def suite(self): | |
50 """Returns the test suite, none for uirobot.""" | |
51 return None | |
52 | |
53 @property | |
54 def minutes(self): | |
55 """Returns the number of minutes to run the uirobot for.""" | |
56 return self._minutes | |
OLD | NEW |