• Home
Name Date Size #Lines LOC

..--

.github/workflows/03-May-2024-3023

docs/03-May-2024-1,8631,335

mobly/03-May-2024-13,2719,711

tests/03-May-2024-14,59011,619

tools/03-May-2024-15194

.gitignoreD03-May-2024133 1514

.readthedocs.ymlD03-May-2024586 269

.style.yapfD03-May-202475 64

Android.bpD03-May-2024911 3027

CHANGELOG.mdD03-May-202413.2 KiB400277

CONTRIBUTING.mdD03-May-20241.8 KiB5945

LICENSED03-May-202411.1 KiB203169

METADATAD03-May-2024467 2118

MODULE_LICENSE_APACHE2D03-May-20240

OWNERSD03-May-2024160 97

README.mdD03-May-20242.8 KiB8158

setup.cfgD03-May-2024126 76

setup.pyD03-May-20241.9 KiB7146

tox.iniD03-May-202481 118

README.md

1# Welcome to Mobly
2
3**Mobly** is a Python-based test framework that specializes in supporting test
4cases that require multiple devices, complex environments, or custom hardware
5setups.
6
7Here are some example use cases:
8*   P2P data transfer between two devices
9*   Conference calls across three phones
10*   Wearable device interacting with a phone
11*   Internet-Of-Things devices interacting with each other
12*   Testing RF characteristics of devices with special equipment
13*   Testing LTE network by controlling phones, base stations, and eNBs
14
15Mobly can support many different types of devices and equipment, and it's easy
16to plug your own device or custom equipment/service into Mobly.
17
18Mobly comes with a set of libs to control common devices like Android devices.
19
20While developed by Googlers, Mobly is not an official Google product.
21
22## Compatibility
23
24Mobly requires *python 3.6* or newer.
25
26Mobly tests could run on the following platforms:
27  - Ubuntu 14.04+
28  - MacOS 10.6+
29  - Windows 7+
30
31| Platform | Build Status |
32|----------|--------------|
33| Linux    | [![Linux Build Status](https://travis-ci.org/google/mobly.svg?branch=master)](https://travis-ci.org/google/mobly) |
34| Windows  | [![Windows Build Status](https://storage.googleapis.com/mobly-kokoro-build-badges/mobly-windows.svg)](https://fusion.corp.google.com/projectanalysis/current/KOKORO/prod%3Amobly%2Fgcp_windows%2Fcontinuous) |
35
36## System dependencies
37  - adb (1.0.40+ recommended)
38  - python3.7+
39  - python-setuptools
40
41*To use Python3, use `pip3` and `python3` (or python3.x) accordingly.*
42
43## Installation
44You can install the released package from pip
45
46```sh
47pip install mobly
48```
49
50or download the source then run `setup.py` to use the bleeding edge:
51
52```sh
53git clone https://github.com/google/mobly.git
54cd mobly
55python setup.py install
56```
57
58You may need `sudo` for the above commands if your system has certain permission
59restrictions.
60
61## Tutorials
62
63* [Mobly 101](docs/tutorial.md) -
64Simple test examples to get you started with Mobly.
65
66* [Mobly Instrumentation Runner Tutorial](docs/instrumentation_tutorial.md) -
67How to use Mobly's Android instrumentation test runner to run Android instrumentation tests.
68
69* [Mobly AndroidDevice Service](docs/android_device_service.md) -
70Create custom service to attach to Mobly's `AndroidDevice` controller.
71
72## Mobly Snippet
73The Mobly Snippet projects let users better control Android devices.
74
75* [Mobly Snippet Lib](https://github.com/google/mobly-snippet-lib): used for
76triggering custom device-side code from host-side Mobly tests. You could use existing
77Android libraries like UI Automator and Espresso.
78* [Mobly Bundled Snippets](https://github.com/google/mobly-bundled-snippets): a set
79of Snippets to allow Mobly tests to control Android devices by exposing a simplified
80version of the public Android API suitable for testing.
81