Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/workflows/ | 03-May-2024 | - | 30 | 23 | ||
docs/ | 03-May-2024 | - | 1,863 | 1,335 | ||
mobly/ | 03-May-2024 | - | 13,271 | 9,711 | ||
tests/ | 03-May-2024 | - | 14,590 | 11,619 | ||
tools/ | 03-May-2024 | - | 151 | 94 | ||
.gitignore | D | 03-May-2024 | 133 | 15 | 14 | |
.readthedocs.yml | D | 03-May-2024 | 586 | 26 | 9 | |
.style.yapf | D | 03-May-2024 | 75 | 6 | 4 | |
Android.bp | D | 03-May-2024 | 911 | 30 | 27 | |
CHANGELOG.md | D | 03-May-2024 | 13.2 KiB | 400 | 277 | |
CONTRIBUTING.md | D | 03-May-2024 | 1.8 KiB | 59 | 45 | |
LICENSE | D | 03-May-2024 | 11.1 KiB | 203 | 169 | |
METADATA | D | 03-May-2024 | 467 | 21 | 18 | |
MODULE_LICENSE_APACHE2 | D | 03-May-2024 | 0 | |||
OWNERS | D | 03-May-2024 | 160 | 9 | 7 | |
README.md | D | 03-May-2024 | 2.8 KiB | 81 | 58 | |
setup.cfg | D | 03-May-2024 | 126 | 7 | 6 | |
setup.py | D | 03-May-2024 | 1.9 KiB | 71 | 46 | |
tox.ini | D | 03-May-2024 | 81 | 11 | 8 |
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