File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ pip install mobly aware
11
11
``` bash
12
12
# linux
13
13
14
+ cd ~
15
+
14
16
sudo apt install python3-venv
15
17
16
18
python3 -m venv yen_py_env
@@ -39,9 +41,7 @@ python3 test_1.py -c sample_config.yml
39
41
# TEST 2
40
42
# -----------------------
41
43
42
- cd android_integ_test
43
-
44
- atest CtsWifiAwareTestCases
44
+ python3 instrumentation_test.py -c sample_config.yml
45
45
```
46
46
47
47
Original file line number Diff line number Diff line change
1
+ # https://github.com/google/mobly/blob/master/docs/instrumentation_tutorial.md
2
+
3
+ from mobly import base_instrumentation_test
4
+ from mobly import test_runner
5
+ from mobly .controllers import android_device
6
+
7
+ class InstrumentationTest (base_instrumentation_test .BaseInstrumentationTestClass ):
8
+ def setup_class (self ):
9
+ self .dut = self .register_controller (android_device )[0 ]
10
+
11
+ def test_instrumentation (self ):
12
+ self .run_instrumentation_test (self .dut , 'com.example.package.test' )
13
+
14
+
15
+ if __name__ == '__main__' :
16
+ test_runner .main ()
File renamed without changes.
You can’t perform that action at this time.
0 commit comments