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
1111``` bash
1212# linux
1313
14+ cd ~
15+
1416sudo apt install python3-venv
1517
1618python3 -m venv yen_py_env
@@ -39,9 +41,7 @@ python3 test_1.py -c sample_config.yml
3941# TEST 2
4042# -----------------------
4143
42- cd android_integ_test
43-
44- atest CtsWifiAwareTestCases
44+ python3 instrumentation_test.py -c sample_config.yml
4545```
4646
4747
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