If you use Python3, use pip3
and python3
(or python3.x) accordingly.
You can install the released package from pip
pip install mobly
or download the source then run setup.py
to use the bleeding edge:
git clone https://github.com/google/mobly.git cd mobly python setup.py install
You may need sudo
for the above commands if your system has certain permission restrictions.
To get started with some simple tests, see the Mobly tutorial.
To get started running single-device Android instrumentation tests with Mobly, see the instrumentation runner tutorial.
The Mobly Snippet projects let users better control Android devices.