We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5475ca5 commit 4880259Copy full SHA for 4880259
mobly/README.md
@@ -0,0 +1,23 @@
1
+# Mobly
2
+
3
+## Setup
4
5
+```bash
6
7
+pip install mobly
8
+```
9
10
+## Cmd
11
12
13
14
+#-----------------------
15
+# Exp 1
16
17
18
+python3 hello_world_test.py -c sample_config.yml
19
20
21
22
+## Ref
23
+- https://github.com/google/mobly/blob/master/docs/tutorial.md
mobly/hello_world_test.py
@@ -0,0 +1,19 @@
+from mobly import base_test
+from mobly import test_runner
+from mobly.controllers import android_device
+class HelloWorldTest(base_test.BaseTestClass):
+ def setup_class(self):
+ # Registering android_device controller module declares the test's
+ # dependency on Android device hardware. By default, we expect at least one
+ # object is created from this.
+ self.ads = self.register_controller(android_device)
+ self.dut = self.ads[0]
+ # Start Mobly Bundled Snippets (MBS).
+ self.dut.load_snippet('mbs', android_device.MBS_PACKAGE)
+ def test_hello(self):
+ self.dut.mbs.makeToast('Hello World!')
+if __name__ == '__main__':
+ test_runner.main()
mobly/sample_config.yml
@@ -0,0 +1,5 @@
+TestBeds:
+ # A test bed where adb will find Android devices.
+ - Name: SampleTestBed
+ Controllers:
+ AndroidDevice: '*'
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments