软件依赖 python2.7 32bit. 强调一遍 32bit. not 64.
从七牛CDN上下载安装依赖的软件包:http://goandroid.qiniudn.com/airtest-dependency.zip
软件包中包含有:
1. python-2.7.7-32bit
2. pyparsing
3. numpy
4. dateutil
5. matplotlib
6. pillow
7. pip
8. setuptools
9. opencv
上述安装完后,打开命令行,继续接着安装软件包(这里用了douban提供的pypi镜像).
如果pip提示没有找到。可能是Scripts目录没有加到系统的PATH中去。比如我系统的pip在的目录是C:\Python27\Scripts
。
pip install -i http://pypi.douban.com/simple --upgrade airtest
# or easy_install -U airtest
(官方的androidviewclient更新快的有点不稳定,所以这里还是用老版本)
easy_install http://goandroid.qiniudn.com/androidviewclient-7.1.2.tar.gz
easy_install androidviewclient
最后下载adb.exe客户端 - 下载地址,下好解压后放到PATH下, 软件来源
adb介绍: http://developer.android.com/tools/help/adb.html
Android上已经支持特殊字符的输入,运行airtest时会自动安装一个输入法软件。感谢开源项目https://github.com/senzhk/ADBKeyBoard 软件地址
airtest开发版安装方法,需要下载Git客户端。windows版git点此下载
pip install -U git+https://github.com/netease/airtest.git
或者
git clone https://github.com/netease/airtest.git
cd airtest
python setup.py install