1.安装AirTest IDE   http://airtest.netease.com/ 下载后解压并安装好

2.安装opencv和airetest库 pip install opencv-contrib-python  / pip install airtest

3.链接设备

1)Android真机连接

../_images/1-android_connection.gif

2)远程连接

../_images/2-remote_connection.gif

3)无线链接

 

4)代码中链接

 

 出自官网:http://airtest.netease.com/docs/cn/2_device_connection/1_android_phone_connection.html