Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1ecd110

Browse files
author
yennj12
committed
update
1 parent a07786b commit 1ecd110

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

‎mobly/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ pip install mobly aware
1111
```bash
1212
# linux
1313

14+
cd ~
15+
1416
sudo apt install python3-venv
1517

1618
python3 -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

‎mobly/instrumentation_test.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /